php4-beta | 200004
Date: 04/30/00
- Next message: Jouni Ahto: "[PHP4BETA] cvs: /php4/ext/interbase interbase.c php_interbase.h"
- Previous message: Shane Caraveo: "[PHP4BETA] cvs: /php4/sapi/apache mod_php4.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> |
+----------------------------------------------------------------------+
*/
-/* $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=⪚
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) {
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Jouni Ahto: "[PHP4BETA] cvs: /php4/ext/interbase interbase.c php_interbase.h"
- Previous message: Shane Caraveo: "[PHP4BETA] cvs: /php4/sapi/apache mod_php4.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

