From b5817cc4c3333a33d521afdc37b140c9abe1eba7 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 7 Sep 2025 13:26:20 +0200 Subject: [PATCH] Remove pointless zval_ptr_dtor() calls in userspace stream handling (#19712) These act on LONGs, so dtor'ing them is pointless. --- main/streams/userspace.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/main/streams/userspace.c b/main/streams/userspace.c index 338c63bbaa7..888e4c90bba 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -748,9 +748,6 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when zend_result call_result = zend_call_method_if_exists(Z_OBJ(us->object), func_name, &retval, 2, args); zend_string_release_ex(func_name, false); - zval_ptr_dtor(&args[0]); - zval_ptr_dtor(&args[1]); - if (call_result == FAILURE) { /* stream_seek is not implemented, so disable seeks for this stream */ stream->flags |= PHP_STREAM_FLAG_NO_SEEK;