From:             drivel at iahk dot com
Operating system: Any
PHP version:      4.3.6
PHP Bug Type:     Apache2 related
Bug description:  PHP 4.3.6 Apache 2.0.49 SSL still crashes...

Description:
------------
With PHP 4.3.6 release and Apache-2.0.49 SSL, it still crashes on restart.
This bug seemed that it has not been completely fixed in PHP 4.3.6.

However, after applying the patch from freebsd, the restart issue goes
away:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php4/files/patch-ext%3a%3apcre%3a%3aphp_pcre.c?rev=1.1&content-type=text/x-cvsweb-markup

--- ext/pcre/php_pcre.c.orig    Fri Apr 16 09:21:14 2004
+++ ext/pcre/php_pcre.c Fri Apr 16 09:23:36 2004
@@ -106,15 +106,6 @@
        REGISTER_LONG_CONSTANT("PREG_SPLIT_DELIM_CAPTURE",
PREG_SPLIT_DELIM_CAPTURE, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("PREG_SPLIT_OFFSET_CAPTURE",
PREG_SPLIT_OFFSET_CAPTURE, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("PREG_GREP_INVERT", PREG_GREP_INVERT, CONST_CS |
CONST_PERSISTENT);
-
-       pcre_malloc = php_pcre_malloc;
-       pcre_free = php_pcre_free;
-
-#ifdef NO_RECURSE
-       pcre_stack_malloc = php_pcre_malloc;
-       pcre_stack_free = php_pcre_free;
-#endif
-       
        return SUCCESS;
 }
 /* }}} */
@@ -130,6 +121,16 @@
 }
 /* }}} */
 
+/* {{{ PHP_RINIT_FUNCTION(pcre) */
+static PHP_RINIT_FUNCTION(pcre)
+{
+       pcre_malloc = php_pcre_malloc;
+       pcre_free = php_pcre_free;
+
+       return SUCCESS;
+}
+/* }}} */
+
 /* {{{ pcre_get_compiled_regex
  */
 PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int
*preg_options) {
@@ -1527,7 +1528,7 @@
        pcre_functions,
        PHP_MINIT(pcre),
        PHP_MSHUTDOWN(pcre),
-       NULL,
+       PHP_RINIT(pcre),
        NULL,
        PHP_MINFO(pcre),
        NO_VERSION_YET,







Expected result:
----------------
Apache should not crash on restart

Actual result:
--------------
Apache crashes

-- 
Edit bug report at http://bugs.php.net/?id=28044&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28044&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28044&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28044&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28044&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28044&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28044&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28044&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28044&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28044&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28044&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28044&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28044&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28044&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28044&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28044&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28044&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28044&r=float

Reply via email to