fix phar copy-on-write

This commit is contained in:
Anatol Belski 2014-08-28 17:35:54 +02:00
parent 9f1b68eda5
commit f4e04b9fb1

View File

@ -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);