Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jun 2003
    Location
    Canberra, Australia
    Posts
    24

    Default [Case 46284] PCRE unicode class issue with PHP 5.3

    Is there still a problem with this as we are seeing this problem upgrading from 5.3.2 to 5.3.4? The pcre module installed via packages on freebsd is different to the version used with PHP

    Code:
    # /opt/pcre/bin/pcretest -C
    PCRE version 8.02 2010-03-19
    Compiled with
      UTF-8 support
      Unicode properties support
      Newline sequence is LF
      \R matches all Unicode newlines
      Internal link size = 2
      POSIX malloc threshold = 10
      Default match limit = 10000000
      Default recursion depth limit = 10000000
      Match recursion uses stack
    Code:
    # pcretest -C
    PCRE version 8.12 2011-01-15
    Compiled with
      UTF-8 support
      Unicode properties support
      Newline sequence is LF
      \R matches all Unicode newlines
      Internal link size = 2
      POSIX malloc threshold = 10
      Default match limit = 10000000
      Default recursion depth limit = 10000000
      Match recursion uses stack

  2. #2
    Member
    Join Date
    May 2006
    Posts
    271
    cPanel/Enkompass Access Level

    Root Administrator

    Question Re: PCRE unicode class problem - php preg_match

    It seems that EasyApache compiles with an outdated version of PCRE

    Question for cPanel - when will easyapache compile with the latest PCRE (8.12) instead of this very old 8.02?

    There have been a lot of bug fixes since 8.02 and it would be nice to have them, especially considering I'd like to see whether or not it helps with the massive amount of " PCRE limits exceeded (-8): (null) " errors in the server logs.

    Thanks for your (hopeful) reply.

  3. #3
    cPanel Staff cPanelKeithS's Avatar
    Join Date
    Oct 2008
    Posts
    24

    Default Re: PCRE unicode class problem - php preg_match

    root@dolphin [/usr/ports/devel/pcre/work/pcre-8.12]# ./configure --prefix=/opt/pcre --enable-utf8 --enable-unicode-properties

    This will update the /opt/pcre install so php will have the proper installation. A coworker is filing a case on this now.
    cPResources: -- cPanelKeithS - Keith Stewart, Migration Specialist, Technical Analyst, cPanel Technical Support

  4. #4
    Member
    Join Date
    May 2006
    Posts
    271
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PCRE unicode class problem - php preg_match

    Quote Originally Posted by cPanelKeithS View Post
    root@dolphin [/usr/ports/devel/pcre/work/pcre-8.12]# ./configure --prefix=/opt/pcre --enable-utf8 --enable-unicode-properties

    This will update the /opt/pcre install so php will have the proper installation. A coworker is filing a case on this now.
    Sorry if I'm a being a bit daft here cPanelKeithS, but are you suggesting that I could I copy this exact entire line:

    root@dolphin [/usr/ports/devel/pcre/work/pcre-8.12]# ./configure --prefix=/opt/pcre --enable-utf8 --enable-unicode-properties

    And paste it into shell? I've never used anything that started with root@dolphin , hence my confusion. I'm not very intuitive with the Linux command line other than the main basic daily things I need to run. Almost everything I do is from WHM except for checking top and user processes and grepping logs etc... so I'm a little hesitant to just copy and paste the entire line you provided.

    Any clarification would be helpful.

    Thanks very much for answering my post, I appreciate it!

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PCRE unicode class problem - php preg_match

    If you are on FreeBSD, then you would do the following commands:

    Code:
    cd /usr/ports/devel/pcre/work/pcre-8.12
    ./configure --prefix=/opt/pcre --enable-utf8 --enable-unicode-properties
    The part where it has root@dolphin is the server's shell prompt for the system in question.

    As for the internal case, it is case #46284 which I've tagged to this thread.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    May 2006
    Posts
    271
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PCRE unicode class problem - php preg_match

    Quote Originally Posted by cPanelTristan View Post
    If you are on FreeBSD, then you would do the following commands:
    I'm use REHL 4.

    I hate to bother cPanel with a support ticket over this, so any chance you could make it clear here what RHEL users should do?

    Between this thread and the case thread I'm getting a bit confused.

    Thanks for the attention this thread is finally receiving.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: [Case 46284] PCRE unicode class issue with PHP 5.3

    Hello,

    Please do the following:

    Code:
    cd /root
    wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
    tar xzf pcre-8.12.tar.gz 
    cd pcre-8.12
    ./configure --prefix=/opt/pcre --enable-utf8 --enable-unicode-properties
    If this does not work, please open up a ticket using WHM > Support Center > Contact cPanel or using the link in my signature.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: [Case 46284] PCRE unicode class issue with PHP 5.3

    Case 46284 has been implemented in EasyApache 3.5, now available in all update tiers.

  9. #9
    Member
    Join Date
    Aug 2010
    Posts
    5

    Default Re: [Case 46284] PCRE unicode class issue with PHP 5.3

    Quote Originally Posted by cPanelDavidG View Post
    Case 46284 has been implemented in EasyApache 3.5, now available in all update tiers.
    Ok we have easyapache 3.11.2 amd when we try to log into our version of magento this error appears in our log files.

    User Notice: Sorry, your PCRE extension does not support UTF8 which is needed for the I18N core in /home/XXXXXX/public_html/shop/lib/Zend/Locale/Format.php on line 769

    Now from the discussion above I assumed this issue was dealt with. But since upgradeing to PHP 5.3.10 we now have this problem.

    Any ideas on why this issue would now be an issue once again given it was meant to have been dealt with some time ago.

    Thanks

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: [Case 46284] PCRE unicode class issue with PHP 5.3

    Hello,

    Please submit a ticket to http://go.cpanel.net/bugs if you believe that this is a bug. Since the prior case is closed, the only way to ensure the bug is reported would be to submit a report, provide login credentials so we can log into the machine to confirm and then allow us to try to reproduce it as a possible issue.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  11. #11
    Member
    Join Date
    Aug 2010
    Posts
    5

    Default Re: [Case 46284] PCRE unicode class issue with PHP 5.3

    ok submitted

Similar Threads & Tags
Similar threads

  1. php Aborted (core dumped) ==> ioncube issue [Case 44492]
    By Radio_Head in forum Archived Feature Requests
    Replies: 5
    Last Post: 08-15-2011, 10:14 AM
  2. php Aborted (core dumped) ==> ioncube issue [Case 44492]
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-27-2011, 09:42 AM
  3. PCRE unicode class problem - php preg_match
    By ctrLogic.net in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 05-06-2010, 11:40 AM
  4. Unicode library Standard PHP
    By cobro in forum New User Questions
    Replies: 0
    Last Post: 06-28-2008, 09:54 PM
  5. Compiling php with pcre ?
    By tmellon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-02-2003, 03:29 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube