php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41148 PHP 4.4.6 Segfault with PCRE 7.0 not with 6.6
Submitted: 2007-04-20 11:08 UTC Modified: 2007-04-20 16:46 UTC
From: baco at infomaniak dot ch Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 4.4.6 OS: Linux/Debian
Private report: No CVE-ID: None
 [2007-04-20 11:08 UTC] baco at infomaniak dot ch
Description:
------------
After upgrading PHP from 4.4.4 to 4.4.6 our customers using
SPIP, Joomla Mambot, etc. their websites display a blank page
or 500 due to a segfault of PHP.

I have backported PCRE from version 7.0 to 6.6 on PHP 4.4.6.
No more segfault of PHP and SPIP works as before.

http://www.infomaniak.ch/php4/php-4.4.6-downgrade_pcre.patch
http://www.infomaniak.ch/php4/

Best Regards,
Guy Baconniere <baco(A-T)infomaniak.ch>

REFERENCES
http://www.guiderdoni.net/Probleme-Spip-et-php-version-4-4-6.html
http://bugs.php.net/bug.php?id=41050


Reproduce code:
---------------
1. Compile PHP 4.4.6 without my patch
2. install any version of SPIP including 1.9.2 (http://www.spip.net)

N.B. Only 1.9.2a has a workaround see http://trac.rezo.net/trac/spip/changeset/8844

I understand this maybe a bug in PCRE 7.0 (see bug #41050)
but why do you not downgrade to 6.6 until fixed so your last PHP 4.4.x will be again more "stable" ?


Expected result:
----------------
SPIP working.

Actual result:
--------------
Blank page, HTTP 500, segfault of PHP.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-20 11:22 UTC] tony2001@php.net
A stack overflow in PCRE is known problem, but PCRE bugs should be reported to PCRE developers.
Please search the database before reporting.

And yes, you don't have to apply any patches in order to build PHP with external PCRE.
Use --with-pcre-regex=DIR option to do that.
 [2007-04-20 16:09 UTC] baco at infomaniak dot ch
Juste a simple question :

Why PHP 4.4.6 "Stable" has PCRE 7.0 and PHP 5.2.1 "Stable" has PCRE 
6.7 ?
 [2007-04-20 16:19 UTC] tony2001@php.net
Because 4.4.6 has been release AFTER 5.2.1.

You don't HAVE to use the bundled PCRE, so please spend your time on helping PCRE developers to fix this issue.
Thank you.
 [2007-04-20 16:46 UTC] baco at infomaniak dot ch
OK leave this as bogus and
users of PHP 4.4.6+ MUST use --with-pcre-regex=

Just for info :

-No comments-

PHP 5.2.1 / 08 Feb 2007
pcre-6.7 / 05.07.2006

PHP 4.4.6 / 01 Mar 2007
pcre-7.0 / 19.12.2006

PHP 4.4.4 / ...
pcre-6.6 / 06.02.2006

-No comments-
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 14:01:34 2024 UTC