diff options
author | Shane Caraveo <shane@php.net> | 2000-04-30 04:56:48 +0000 |
---|---|---|
committer | Shane Caraveo <shane@php.net> | 2000-04-30 04:56:48 +0000 |
commit | 0fc8ff61b2dc0549811559e63ee89cf4b12215a6 (patch) | |
tree | a271fb5fec3fc4008a9b19c636efd78ac404b88c /sapi | |
parent | b87df8f21060b18a6f8f233e02cb3575aaa8f4f6 (diff) | |
download | php-git-0fc8ff61b2dc0549811559e63ee89cf4b12215a6.tar.gz |
zeroing the variables fixes one crash...now crashes on memory allocation during zend_compile_files
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/apache/sapi_apache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/apache/sapi_apache.c b/sapi/apache/sapi_apache.c index 460eabd1d1..3639332773 100644 --- a/sapi/apache/sapi_apache.c +++ b/sapi/apache/sapi_apache.c @@ -67,9 +67,13 @@ PHPAPI int apache_php_module_main(request_rec *r, int fd, int display_source_mod 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) { |