]> granicus.if.org Git - php/commitdiff
Since we have fci_cache = &fci_cache_local inside that block
authorRasmus Lerdorf <rasmus@php.net>
Sun, 7 Aug 2011 00:50:46 +0000 (00:50 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 7 Aug 2011 00:50:46 +0000 (00:50 +0000)
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here

Zend/zend_execute_API.c

index f7594d9be1b92e80e41c8505f494ac99a2799a6f..839621ea6b79d4ac59e00eb5e7f1ed0679881ad6 100644 (file)
@@ -763,6 +763,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
        zend_class_entry *called_scope = NULL;
        zval *current_this;
        zend_execute_data execute_data;
+       zend_fcall_info_cache fci_cache_local;
 
        *fci->retval_ptr_ptr = NULL;
 
@@ -797,7 +798,6 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
        }
 
        if (!fci_cache || !fci_cache->initialized) {
-               zend_fcall_info_cache fci_cache_local;
                char *callable_name;
                char *error = NULL;