]> granicus.if.org Git - php/commitdiff
- Tray fixing #35088
authorMarcus Boerger <helly@php.net>
Thu, 3 Nov 2005 21:58:42 +0000 (21:58 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 3 Nov 2005 21:58:42 +0000 (21:58 +0000)
ext/spl/php_spl.c

index c3c16a700ac4bae4eb860aac7488e627a5acb8d6..a235d2fbd4ca9406d4c20c8c0e7e38b8a5b495b7 100755 (executable)
@@ -448,7 +448,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);
                }