From: Dmitry Stogov Date: Wed, 16 Apr 2014 10:15:24 +0000 (+0400) Subject: Fixed reference counting X-Git-Tag: POST_PHPNG_MERGE~412^2~83^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62016f5ab34166f1defc90fdda6e11025db823eb;p=php Fixed reference counting --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 763996ad2a..30ecf67824 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -385,6 +385,7 @@ PHP_FUNCTION(spl_autoload_extensions) if (SPL_G(autoload_extensions) == NULL) { RETURN_STRINGL(SPL_DEFAULT_FILE_EXTENSIONS, sizeof(SPL_DEFAULT_FILE_EXTENSIONS) - 1); } else { + STR_ADDREF(SPL_G(autoload_extensions)); RETURN_STR(SPL_G(autoload_extensions)); } } /* }}} */