]> granicus.if.org Git - php/commitdiff
- Fixed bug #45726 (PHP_Archive / Archive.php missing)
authorFelipe Pena <felipe@php.net>
Fri, 17 Oct 2008 01:53:26 +0000 (01:53 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 17 Oct 2008 01:53:26 +0000 (01:53 +0000)
ext/phar/phar/pharcommand.inc

index 2060f5227f3fa93c70c3a0fe83f042241c133b80..cbca587e35103b3c40f98e136e87a023eae4a31b 100755 (executable)
@@ -488,7 +488,9 @@ class PharCommand extends CLICommand
 
                        if (isset($loader)) {
                                $s = "<?php if (!class_exists('PHP_Archive')) {\n?>";
-                               $s .= file_get_contents($loader);
+                               if (is_file($loader)) {
+                                       $s .= file_get_contents($loader);
+                               }
                                $s .= "<?php\n";
                                $s .= "}\n";
                                $s .= "if (!in_array('phar', stream_get_wrappers())) {\n";