]> granicus.if.org Git - php/commitdiff
Fix bug #68816 - pointer to local outside of scope
authorStanislav Malyshev <stas@php.net>
Thu, 15 Jan 2015 00:14:43 +0000 (16:14 -0800)
committerStanislav Malyshev <stas@php.net>
Thu, 15 Jan 2015 00:14:43 +0000 (16:14 -0800)
ext/spl/spl_iterators.c

index 90ff2bb7cd57668982bf30bccc987366cde160f4..3be74b6d1e79ff84977c724d13e949307a013777 100644 (file)
@@ -476,13 +476,14 @@ static void spl_recursive_it_it_construct(INTERNAL_FUNCTION_PARAMETERS, zend_cla
        zend_long mode, flags;
        int inc_refcount = 1;
        zend_error_handling error_handling;
+       zval caching_it;
 
        zend_replace_error_handling(EH_THROW, spl_ce_InvalidArgumentException, &error_handling);
 
        switch (rit_type) {
                case RIT_RecursiveTreeIterator: {
 
-                       zval caching_it, caching_it_flags, *user_caching_it_flags = NULL;
+                       zval caching_it_flags, *user_caching_it_flags = NULL;
                        mode = RIT_SELF_FIRST;
                        flags = RTIT_BYPASS_KEY;