mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
fix phar copy-on-write
This commit is contained in:
parent
9f1b68eda5
commit
f4e04b9fb1
@ -3421,6 +3421,7 @@ PHP_METHOD(Phar, copy)
|
||||
}
|
||||
}
|
||||
|
||||
tmp_len = (int)newfile_len;
|
||||
if (phar_path_check(&newfile, &tmp_len, &pcr_error) > pcr_is_ok) {
|
||||
zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC,
|
||||
"file \"%s\" contains invalid characters %s, cannot be copied from \"%s\" in phar %s", newfile, pcr_error, oldfile, phar_obj->archive->fname);
|
||||
|
Loading…
Reference in New Issue
Block a user