From f4e04b9fb14410cdbd853d3b4111793d9ab5692e Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 28 Aug 2014 17:35:54 +0200 Subject: [PATCH] fix phar copy-on-write --- ext/phar/phar_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 2d34cf6bfb..ed3e60a0ea 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -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); -- 2.50.1