cvs: /php4/sapi/apache sapi_apache.c

From: Date: Sun, 30 Apr 2000 04:57:18 +0000
Subject: cvs: /php4/sapi/apache sapi_apache.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-14193@lists.php.net to get a copy of this message
shane Sat Apr 29 21:57:18 2000 EDT Modified files: /php4/sapi/apache sapi_apache.c Log: zeroing the variables fixes one crash...now crashes on memory allocation during zend_compile_files Index: php4/sapi/apache/sapi_apache.c diff -u php4/sapi/apache/sapi_apache.c:1.13 php4/sapi/apache/sapi_apache.c:1.14 --- php4/sapi/apache/sapi_apache.c:1.13 Sat Apr 29 21:15:26 2000 +++ php4/sapi/apache/sapi_apache.c Sat Apr 29 21:56:48 2000 @@ -19,7 +19,7 @@ | Stig Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ */ -/* $Id: sapi_apache.c,v 1.13 2000/04/30 04:15:26 shane Exp $ */ +/* $Id: sapi_apache.c,v 1.14 2000/04/30 04:56:48 shane Exp $ */ #define NO_REGEX_EXTRA_H #ifdef WIN32 @@ -67,9 +67,13 @@ zend_compiler_globals cg; zend_executor_globals eg; php_core_globals pcg; + zend_compiler_globals *compiler_globals=&cg; zend_executor_globals *executor_globals=&eg; php_core_globals *core_globals=&pcg; + memset(&cg,0,sizeof(zend_compiler_globals)); + memset(&eg,0,sizeof(zend_executor_globals)); + memset(&pcg,0,sizeof(php_core_globals)); #endif if (php_request_startup(CLS_C ELS_CC PLS_CC SLS_CC) == FAILURE) {

« previous php.version4 (#14193) next »