mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
zeroing the variables fixes one crash...now crashes on memory allocation during zend_compile_files
This commit is contained in:
parent
b87df8f210
commit
0fc8ff61b2
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue