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