Forgot the first 2 commands. Entering the sources folder and extracting pcre.
Forgot the first 2 commands. Entering the sources folder and extracting pcre.
for the most part the info above worked. but I got a malformed line when I did the echo, here is what i did to make it work
cd /var/cpanel/perl/easy/Cpanel/Easy/OptLib
tar -xzvf pcre.pm.tar.gz
created a patch file called pcre_patch & added this to it.
--- pcre-8.21/pcre_compile.c 2011/12/07 16:52:34 793
+++ pcre-8.21/pcre_compile.c 2011/12/18 10:03:38 807
@@ -1655,7 +1655,8 @@
case OP_ASSERTBACK:
case OP_ASSERTBACK_NOT:
do cc += GET(cc, 1); while (*cc == OP_ALT);
- /* Fall through */
+ cc += _pcre_OP_lengths[*cc];
+ break;
patch -p1 < pcre_patch
it might ask for the filename to patch, I just typed pcre-8.21/pcre_compile.c
and it patched the file.
then I just ran the rest of the commands from above
tar -czvf pcre.pm.tar.gz pcre-8.21/
rm -Rf pcre-8.21/
chattr +i pcre.pm.tar.gz
rm -Rf /opt/pcre/
/scripts/easyapache --build
chattr -i pcre.pm.tar.gz
My forums are now working again...I'm a happy camper
the code for the patch came from this post http://bugs.exim.org/show_bug.cgi?id=1187
Last edited by Worelock; 02-13-2012 at 06:40 AM. Reason: fixed some filename issues
What is the extension for the patch file you created ? Could you detail the steps involved precisely ?
There's a couple of inconsistencies in your file names too ??
you copied the text from the other site...not the code for the patch I posted.
i removed the code/trunk/ from the file name in my code above.
You don't need an extension for the patch either...its just a plain old text file that i created in the /var/cpanel/perl/easy/Cpanel/Easy/OptLib using the command nano pcre_patch
Interesting dont have a problem with this on my WHM server with PHP 5.3.10 but seems i'm running PCRE version 8.12 not 8.21 with CentOS 5.7.
possibly because you upgraded to 5.3.10 before the pcre libraries where updated?
i did post in my first post that it might ask you what file to patch...and i typed pcre_compile.c when it did what yours did in the screenshot
non of this methods works for me !
If you are following his directions, when it asks for the file, enter "pcre-8.21/pcre_compile.c"
The patch failed when I tried to follow this advice. I just edited the pcre_compile.c file myself instead for that step.
To do so, I just found line 1655 in /var/cpanel/perl/easy/Cpanel/Easy/OptLib/pcre-8.21/pcre_compile.c and replaced:
case OP_ASSERTBACK:
case OP_ASSERTBACK_NOT:
do cc += GET(cc, 1); while (*cc == OP_ALT);
/* Fall through */
with:
case OP_ASSERTBACK:
case OP_ASSERTBACK_NOT:
do cc += GET(cc, 1); while (*cc == OP_ALT);
cc += _pcre_OP_lengths[*cc];
break;
yea..my bad, should have added the pcre-8.21/ in front of the file name
I have edited the original post.