mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- initialize globals properly
This commit is contained in:
parent
36751953d4
commit
6075a65319
@ -75,8 +75,15 @@ extern void timeout(int sig);
|
||||
ZEND_GET_MODULE(recode)
|
||||
#endif
|
||||
|
||||
static void php_recode_init_globals (zend_recode_globals *rg)
|
||||
{
|
||||
rg->outer = NULL;
|
||||
}
|
||||
|
||||
PHP_MINIT_FUNCTION(recode)
|
||||
{
|
||||
ZEND_INIT_MODULE_GLOBALS(recode, php_recode_init_globals, NULL);
|
||||
|
||||
ReSG(outer) = recode_new_outer(true);
|
||||
if (ReSG(outer) == NULL)
|
||||
return FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user