diff --git a/NEWS b/NEWS index 366c348e745..d9682723aee 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,10 @@ PHP NEWS - Standard: . Fixed bug GH-16649 (UAF during array_splice). (alexandre-daubois) +- Streams: + . Remove incorrect call to zval_ptr_dtor() in user_wrapper_metadata(). + (nielsdos) + 28 Aug 2025, PHP 8.4.12 - Core: diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 0bb80acf6b7..567aad74e58 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -1222,7 +1222,6 @@ static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, i break; default: php_error_docref(NULL, E_WARNING, "Unknown option %d for " USERSTREAM_METADATA, option); - zval_ptr_dtor(&args[2]); return ret; }