- MFH Try fixing #35088
authorMarcus Boerger <helly@php.net>
Thu, 3 Nov 2005 21:59:13 +0000 (21:59 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 3 Nov 2005 21:59:13 +0000 (21:59 +0000)
ext/spl/php_spl.c

index 3c6808901419f41eab08e9c7b52116a591705191..c4171a6f03fc5566fa16970c5f467a7aa8848f9c 100755 (executable)
@@ -449,7 +449,11 @@ PHP_FUNCTION(spl_autoload_register)
                zend_hash_find(EG(function_table), "spl_autoload", sizeof("spl_autoload"), (void **) &spl_func_ptr);
 
                if (EG(autoload_func) == spl_func_ptr) { /* registered already, so we insert that first */
-                       autoload_func_info spl_alfi = {spl_func_ptr, NULL, NULL};
+                       autoload_func_info spl_alfi;
+
+                       spl_alfi.func_ptr = spl_func_ptr;
+                       spl_alfi.obj = NULL;
+                       spl_alfi.ce = NULL;
                        zend_hash_add(SPL_G(autoload_functions), "spl_autoload", sizeof("spl_autoload"), &spl_alfi, sizeof(autoload_func_info), NULL);
                }