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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user