mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
-Simplify
This commit is contained in:
parent
261749d402
commit
03dfef9f99
1 changed files with 1 additions and 3 deletions
|
@ -1621,9 +1621,7 @@ int phar_flush(phar_entry_data *data, char *user_stub, long len TSRMLS_DC) /* {{
|
|||
} else {
|
||||
if (data->phar->halt_offset && oldfile) {
|
||||
if (data->phar->halt_offset != php_stream_copy_to_stream(oldfile, newfile, data->phar->halt_offset)) {
|
||||
if (oldfile) {
|
||||
php_stream_close(oldfile);
|
||||
}
|
||||
php_stream_close(newfile);
|
||||
php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "unable to copy stub of old phar to new phar \"%s\"", data->phar->fname);
|
||||
return EOF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue