]> granicus.if.org Git - php/commitdiff
- Make sure we are not trying to pack directories
authorMarcus Boerger <helly@php.net>
Wed, 4 Jun 2008 14:36:33 +0000 (14:36 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 4 Jun 2008 14:36:33 +0000 (14:36 +0000)
ext/phar/phar/pharcommand.inc

index 2738e2a658d3496ff8a48991c8f7cf8864c927fb..4638afc343cdfe916c13a06a04b13280aff007f8 100755 (executable)
@@ -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);
                 }
             }