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

phar: Remove redundant *error check (#20288)

The failure of the iterator is already checked above at line 1157.
This commit is contained in:
Niels Dossche
2025-10-25 21:01:41 +02:00
committed by GitHub
parent 3a9d59971b
commit 86a15f9a1b

View File

@@ -1242,12 +1242,6 @@ nostub:
php_stream_close(oldfile);
}
/* on error in the hash iterator above, error is set */
if (*error) {
php_stream_close(newfile);
return;
}
if (phar->fp && pass.free_fp) {
php_stream_close(phar->fp);
}