]> granicus.if.org Git - php/commitdiff
fix ZTS startup without filename (thanx purify!)
authorThies C. Arntzen <thies@php.net>
Wed, 12 Jul 2000 16:37:46 +0000 (16:37 +0000)
committerThies C. Arntzen <thies@php.net>
Wed, 12 Jul 2000 16:37:46 +0000 (16:37 +0000)
Zend/zend.c

index 81c39ed85e8716475c59dc35ca3d9bfc369cf12e..7c73765dfd60e610b89c939e00d2078a0bc76376 100644 (file)
@@ -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));