#27033 [Opn->Fbk]: calling preg_match at _very_ specific points, will cause apache to crash
| From: | sniper@php.net | Date: | Sun, 25 Jan 2004 05:02:46 +0000 |
| Subject: | #27033 [Opn->Fbk]: calling preg_match at _very_ specific points, will cause apache to crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53843@lists.php.net to get a copy of this message | ||
ID: 27033
Updated by: sniper@php.net
Reported By: ask at eternal-newbie dot dk
-Status: Open
+Status: Feedback
Bug Type: PCRE related
Operating System: linux
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-01-24 18:43:39] ask at eternal-newbie dot dk
Description:
------------
in my functions.php (http://wiki.dgsnet.dk/functions.phps) i got a
class called user with a function called in_group(). This function
calls a global function called isint();, this function uses preg_match.
If the in_group() function is called from withith the global makeoutput
function or from a function called from without the makeoutput
function. the the call in in_group() to isint() will cause the apache
child to crash. i cannot get a gdb file, since it's the child and not
the parant server which is crashing. However the log states clearly
that it returns a segmentation fault.
I might need to note that in_group is being called several times before
makeoutput() is started and that works fine.
Reproduce code:
---------------
http://wiki.dgsnet.dk/functions.phps
Expected result:
----------------
that apache/php didn't crash.
Actual result:
--------------
see description.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27033&edit=1