1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove pointless zval_ptr_dtor() calls in userspace stream handling (#19712)

These act on LONGs, so dtor'ing them is pointless.
This commit is contained in:
Niels Dossche
2025-09-07 13:26:20 +02:00
committed by GitHub
parent 110fae0628
commit b5817cc4c3

View File

@@ -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;