diff options
Diffstat (limited to 'ext/phar/func_interceptors.c')
-rw-r--r-- | ext/phar/func_interceptors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index e82a75721d..01004a7611 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -190,7 +190,7 @@ phar_it: } stream = php_stream_open_wrapper_ex(name, "rb", 0 | REPORT_ERRORS, NULL, context); if (entry_str) { - zend_string_release(entry_str); + zend_string_release_ex(entry_str, 0); } else { efree(name); } @@ -210,7 +210,7 @@ phar_it: if (contents && ZSTR_LEN(contents) > 0) { RETVAL_STR(contents); } else if (contents) { - zend_string_release(contents); + zend_string_release_ex(contents, 0); RETVAL_EMPTY_STRING(); } else { RETVAL_FALSE; @@ -308,7 +308,7 @@ notfound: context = php_stream_context_from_zval(zcontext, 0); stream = php_stream_open_wrapper_ex(name, "rb", 0 | REPORT_ERRORS, NULL, context); if (entry_str) { - zend_string_release(entry_str); + zend_string_release_ex(entry_str, 0); } else { efree(name); } @@ -410,7 +410,7 @@ notfound: context = php_stream_context_from_zval(zcontext, 0); stream = php_stream_open_wrapper_ex(name, mode, 0 | REPORT_ERRORS, NULL, context); if (entry_str) { - zend_string_release(entry_str); + zend_string_release_ex(entry_str, 0); } else { efree(name); } |