From: Thies C. Arntzen Date: Wed, 12 Jul 2000 16:37:46 +0000 (+0000) Subject: fix ZTS startup without filename (thanx purify!) X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f4909d9f54af37d0f26e3fe794ac3e23b65fe33;p=php fix ZTS startup without filename (thanx purify!) --- diff --git a/Zend/zend.c b/Zend/zend.c index 81c39ed85e..7c73765dfd 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -260,6 +260,8 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals) zend_function tmp_func; zend_class_entry tmp_class; + compiler_globals->compiled_filename = NULL; + compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); zend_hash_init_ex(compiler_globals->function_table, 100, NULL, ZEND_FUNCTION_DTOR, 1, 0); zend_hash_copy(compiler_globals->function_table, global_function_table, NULL, &tmp_func, sizeof(zend_function));