php 5.6.9 Upgrade PCRE errors #85
Comments
It's probably related. Dotdeb packages rely on the bundled PCRE library and it looks like its latest update is messing with your code, especially with SwiftMailer's regex. I'm sorry, but I can't change the way PHP is linked to PCRE. Could you please isolate the faulty code and report it to the SwiftMailer dev team to make it compatible with PCRE 8.37? |
Actually the swiftmailer code works just fine using php 5.6.9 in CLI. We only have the issue using it via apache 2 mod php5. So not sure where the issue is exactly? :( EDIT: phpinfo says
Shouldn't it be 8.37 according to the release changelog? |
Ok. If you need to downgrade, take a look at http://archives.dotdeb.org/ |
gplessis, if I need to downgrade to 5.6.8, what string is needed in /etc/apt/sources.list ? |
@d1gi : take a look at http://archives.dotdeb.org/, you can get the packages you need and install them manually with |
A intermediate release is coming (see 72b99de) |
Packages of PHP 5.6.9 have been updated a few hours ago. Can you confirm that the problem has been fixed? |
Doesn't seem fixed here. However, I'm not sure if I have the update?
but:
Aren't we suppose to be seeing 8.37? |
Thx for the update! Unfortunately still the same for me as well :( |
Yeah, you did update. I'll investigate further to figure out why the PCRE version hasn't been upgraded. |
no, not fixed. |
bug confirmed, still not fixed |
http://php.net/ChangeLog-5.php#5.6.10 - new versions are out.... |
It seems that the bug is still present after upgrading to 5.6.10-1~dotdeb+7.1 |
Confirmed, its still not fixed with |
Well, then you compiled it wrong - the GIT-Source for PHP 5.6.10 is correct in this spot, see: https://github.com/php/php-src/blob/php-5.6.10/ext/pcre/pcrelib/config.h |
Sorry for this. My source tree is clean (https://github.com/gplessis/dotdeb-php5/blob/master-5.6/wheezy/ext/pcre/pcrelib/config.h). I'll check my CI server. |
Starting from the sources from www.php.net, I'm still getting a wrong version in
I tested on several environnements (Dockerized Wheezy, stock Wheezy, OS X). Always the same result. After some investigation, I found that the "PCRE Library Version" comes from the I'll post an update on bug #69689 to make sure that the PCRE update is complete. |
Guys, I just uploaded new PHP 5.6 packages (versions |
Thx for the update. Now the version looks correct:
Unfortunately the original problem with the swiftmailer regex using apache2 mod php stays the same :( |
Confirming that the version is now reported correctly, but I am still getting the same error. |
Ok, I suspect PCRE 8.37 - the one bundled with mod_php - to be incompatible with the system PCRE -the one used by Apache. Guys, is this issue happening only with Apache or do you use an alternative SAPI - such as FPM, CGI or FastCGI? Could you please test the problematic portion of code with another SAPI (CLI, FPM...), see if the issue still happens, and keep me posted? Thanks. |
Yes. It works with fast-cgi, but not with mod_php. |
Guys, could you please try one of this new packages, depending on you config : The change is that Apache modules are now built against the system PCRE. It should avoid conflict with the one included in Apache - it's now basically the same. No change for the other SAPIs (details here). Please keep me posted. |
@gplessis The new amd64 deb works for me. Thanks. |
I have tested on Debian 7 and it's the same for me with : |
@xkobal : "the same for me" << do you me that it is working now or not? If it's still not working, could you please :
Thanks |
Does not work (sorry for my previous message). The code which does not work is the Swiftmailer regex, here is the error: I can't provide phpinfo, because I rollback my servers, but here is the list of installed packages: |
@xkobal : you're using PHP 5.5, that hasn't been fixed yet. I'll published 5.5.26 soon. |
@akrabat thanks for your feedback. |
No sorry, that was my rollback server dpkg, I use 5.6.10-1~dotdeb+7.2 |
@xkobal did you use the one from my above comment, install it with Thanks. |
OK, works for me ;-) I thought that the libapache2-mod-php5 was published. |
@xkobal no, I wanted to make sure that the issue was fixed before releasing new packages. A fixed PHP 5.6 is currently building. PHP 5.5 and 5.4 should follow. |
@gplessis thanks... Ive been pulling my hair out all day... glad your working on the 5.5 version. |
Latest build worked for me, thanks. |
|
Works great, thanks for that! 👍 |
Also fixed here. Thx! :) |
Fixed here too. Thank you @gplessis. |
on php 5.5 exist exakt the same error ! php -v php -i | grep PCRE i have found the error under: PHP Warning: preg_match(): Compilation failed: internal error: previously-checked referenced subpattern not found at offset 728 in /var/www-s/joom_sib/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php on line 916, referer: ........ |
@MichaelUbuntu built: May 15 2015 16:39:22 |
yes i have already done the following: but nothing changed in php 5.5 |
fixed PHP 5.5 and PHP 5.4 packages will be published today. Thanks for your patience. |
just a nuisance: apcu does not load on cli anymore, becuause of undefined symbol: pcre_exec:
But as apcu does nothing useful on cli anyway, it's easy to disable it:
Works in Apache nicely, though. |
@MaZderMind ok, switch to #81 for this issue |
thanks problem is solved |
FYI, I had to use the system PCRE for all the SAPIs to avoid conflicts with PECL extensions. Don't bother if you see PCRE reported as "8.30 2012-02-04" on PHP 5.5. I'll propagate the changes on all PHP versions soon. |
After upgrading our server to the latest 5.6.9 version we get errors within swiftmailer (same issue as swiftmailer/swiftmailer#259):
preg_match(): Compilation failed: internal error: previously-checked referenced subpattern not found
the swiftmailer ticket suggest that this is somehow a pcre linking issue.
With php 5.6.8 everything is fine. The changelog for php 5.6.9 mentions a PCRE update, this is probably related?
The text was updated successfully, but these errors were encountered: