From: Pierre Joye Date: Tue, 12 Sep 2006 12:04:03 +0000 (+0000) Subject: - MFB:PECL Bug #8676, addFile was not updated and still used VCWD_REALPATH, X-Git-Tag: RELEASE_1_0_0RC1~1692 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b87c6ba8ee89ea8a10f1d34fc26c4b6eed87e5b;p=php - MFB:PECL Bug #8676, addFile was not updated and still used VCWD_REALPATH, it now uses expand_filepath --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index f0a51d156d..3e13334552 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -971,10 +971,10 @@ ZIPARCHIVE_METHOD(addFile) entry_name_len = filename_len; } - if (!VCWD_REALPATH(filename, resolved_path)) { + if(!expand_filepath(filename, resolved_path TSRMLS_CC)) { RETURN_FALSE; } - + zs = zip_source_file(intern, resolved_path, 0, 0); if (!zs) { RETURN_FALSE;