On Tue, Aug 30, 2005 at 06:30:07PM +0200, Andy Spiers wrote:
Hi,
We've just applied the updated packages from the security announcement SUSE-SA:2005:049 that came out about 2 hours ago and we're seeing errors in PCRE functions in a PHP application that was working fine before. Is anyone else having the same problems?
Here's an example of the error generated: PHP Warning: preg_match: internal pcre_fullinfo() error -3 in /srv/www/htdocs/netcat/modules/stats/function.inc.php on line 28
Here's line 28 from the file mentioned - it looks perfectly fine to me: if (preg_match("/(netscape|mozilla|links|lynx|opera|msie|konqueror)/i",$HTTP_USER_AGENT)) {
Looking on google gives me the impression that many people have seen this bug and unfortunately the PHP team's answer seems to be "use the internal/included PCRE library and not the system one".
Do the guys from SuSE or anyone else have any comments on this or ideas on how to solve it? For the moment I've rolled back to the old versions of the RPMs.
Yes, please roll back to the old versions. We have removed the patches on our master update staging server already, so you should get the old version via YOU again (in some minutes after the mirrors pick it up). Our testing did not find the problematic use of the apache2 builtin pcre library, which causes php4 to crash. We will issue fixed updates within the next day(s). Sorry for the inconvience. Ciao, Marcus