com php-src: Fixed reference counting: ext/spl/php_spl.c
| From: | Dmitry Stogov | Date: | Wed, 16 Apr 2014 10:15:24 +0000 |
| Subject: | com php-src: Fixed reference counting: ext/spl/php_spl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77371@lists.php.net to get a copy of this message | ||
Commit: 62016f5ab34166f1defc90fdda6e11025db823eb
Author: Dmitry Stogov <dmitry@zend.com> Wed, 16 Apr 2014 14:15:24 +0400
Parents: 78f428d3a825acae74a975747f25cd6782606633
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=62016f5ab34166f1defc90fdda6e11025db823eb
Log:
Fixed reference counting
Changed paths:
M ext/spl/php_spl.c
Diff:
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 763996a..30ecf67 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));
}
} /* }}} */