From ad8eb0f672a3f29c28e630f04882a943e080ef95 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 4 Jun 2008 14:36:33 +0000 Subject: [PATCH] - Make sure we are not trying to pack directories --- ext/phar/phar/pharcommand.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.50.1