From: Dmitry Stogov Date: Wed, 16 Apr 2014 12:28:11 +0000 (+0400) Subject: Fixed reference counting X-Git-Tag: POST_PHPNG_MERGE~412^2~83^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7537251bd76511961d60d64b883f3a80ec959671;p=php Fixed reference counting --- diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 79e53c0aa0..3d744af3a8 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -1243,6 +1243,7 @@ SPL_METHOD(Array, getIteratorClass) return; } + STR_ADDREF(intern->ce_get_iterator->name); RETURN_STR(intern->ce_get_iterator->name); } /* }}} */