Skip to content

Commit 4315c3a

Browse files
authored
standard: Remove nonsensical dtor of return value in fread() (#20739)
It was never set to a string at this point, so why dtor it?
1 parent 77eedd7 commit 4315c3a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/standard/file.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ PHPAPI PHP_FUNCTION(fread)
15551555

15561556
str = php_stream_read_to_str(stream, len);
15571557
if (!str) {
1558-
zval_ptr_dtor_str(return_value);
15591558
RETURN_FALSE;
15601559
}
15611560

0 commit comments

Comments
 (0)