diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 76b9800dd8d..4f8e561eade 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -1752,7 +1752,6 @@ PHP_FUNCTION(stream_is_local) } else { convert_to_string_ex(&zstream); wrapper = php_stream_locate_url_wrapper(Z_STRVAL_P(zstream), NULL, 0 TSRMLS_CC); - zval_ptr_dtor(&zstream); } if(!wrapper) {