From: Marcus Boerger Date: Wed, 4 Jun 2008 14:36:33 +0000 (+0000) Subject: - Make sure we are not trying to pack directories X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad8eb0f672a3f29c28e630f04882a943e080ef95;p=php - Make sure we are not trying to pack directories --- diff --git a/ext/phar/phar/pharcommand.inc b/ext/phar/phar/pharcommand.inc index 2738e2a658..4638afc343 100755 --- a/ext/phar/phar/pharcommand.inc +++ b/ext/phar/phar/pharcommand.inc @@ -616,7 +616,7 @@ class PharCommand extends CLICommand try { foreach($dir as $file) { - if (empty($stub) || $file->getRealPath() != $stub->getRealPath()) { + if ((empty($stub) || $file->getRealPath() != $stub->getRealPath()) && !is_dir($file)) { self::phar_add_file($phar, $level, $dir->getSubPathName(), $file, $compress, $noloader); } }