Need to downgrade pcre from 8.21 to 8.20

Worelock

Active Member
Mar 23, 2004
37
0
156
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
 

oldlock

Well-Known Member
Sep 19, 2008
76
0
56
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
Thanks for your help.

I've copied the text exactly and the error still presents ?

patchfile.JPG

error1.JPG
 

Worelock

Active Member
Mar 23, 2004
37
0
156
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
 

scottelkin

Registered
Nov 18, 2008
1
0
51
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;
 

anwarx

Registered
Feb 13, 2012
3
0
51
cPanel Access Level
Root Administrator
You Save My Time Dude

thanks it worked like a charm :)

thanks again

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;
 

Worelock

Active Member
Mar 23, 2004
37
0
156
yea..my bad, should have added the pcre-8.21/ in front of the file name
I have edited the original post.
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
At my side i choosen rather upgrade my PHP to the higher version 5.3.8 (via easyapache) after Apache restart it worked OK.
 

velo

Registered
Apr 27, 2012
1
0
51
cPanel Access Level
Root Administrator
I have tried to do this patch. It did't work.
I get an error during the build.

-- Begin step 'Check PCRE' --
!! Downloading '/var/cpanel/perl/easy/Cpanel/Easy/OptLib/pcre.pm.tar.gz' !!

!! Installing or updating 'pcre', this will take a while and shouldn't have to be done again until a new version is released by the vendor. !!
patch: **** Can't open patch file ../pcre-8.21-fixed-length-lookbehind.patch : No such file or directory
!! Command failed in '/home/cpeasyapache/src/pcre-8.21': 'patch -p1 -i ../pcre-8.21-fixed-length-lookbehind.patch' !!
!! Restoring original working apache !!

I now on version pcre-6.6. How do I upgrade? or get the patch to work?

Any ideas?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
somewhere over the rainbow
cPanel Access Level
Root Administrator