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

standard: Remove nonsensical dtor of return value in fread() (#20739)

It was never set to a string at this point, so why dtor it?
This commit is contained in:
Niels Dossche
2025-12-19 12:11:17 -08:00
committed by GitHub
parent 77eedd78ef
commit 4315c3a5aa

View File

@@ -1555,7 +1555,6 @@ PHPAPI PHP_FUNCTION(fread)
str = php_stream_read_to_str(stream, len);
if (!str) {
zval_ptr_dtor_str(return_value);
RETURN_FALSE;
}