diff options
Diffstat (limited to 'ext/spl')
-rw-r--r-- | ext/spl/php_spl.c | 1 | ||||
-rw-r--r-- | ext/spl/spl_array.c | 1 |
2 files changed, 2 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)); } } /* }}} */ 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); } /* }}} */ |