summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-04-16 22:33:22 +0800
committerXinchen Hui <laruence@gmail.com>2014-04-16 22:33:22 +0800
commitcf7e703813e065fec7a8a5caa7aff4b70d3455b8 (patch)
treee986229569b1107b3c43c56bc4afb30e9a6bf03d /ext/spl/php_spl.c
parentce49e6b0f73d9d8b51bd85d40abb5008a496f700 (diff)
parent54c338acc1cff6d0375d3094af8a75c6d1c3a001 (diff)
downloadphp-git-cf7e703813e065fec7a8a5caa7aff4b70d3455b8.tar.gz
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r--ext/spl/php_spl.c1
1 files changed, 1 insertions, 0 deletions
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));
}
} /* }}} */