bjori           Thu Jun  4 12:21:59 2009 UTC

  Modified files:              
    /php-src/ext/phar/phar      pharcommand.inc 
  Log:
  Fixed creating directory structure when extracting phars
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/phar/pharcommand.inc?r1=1.53&r2=1.54&diff_format=u
Index: php-src/ext/phar/phar/pharcommand.inc
diff -u php-src/ext/phar/phar/pharcommand.inc:1.53 
php-src/ext/phar/phar/pharcommand.inc:1.54
--- php-src/ext/phar/phar/pharcommand.inc:1.53  Mon Dec  8 00:15:51 2008
+++ php-src/ext/phar/phar/pharcommand.inc       Thu Jun  4 12:21:59 2009
@@ -894,11 +894,10 @@
                $target = $dir . '/' . $sub;
 
                if (!file_exists(dirname($target))) {
-                       if (!is_writable(dirname($target))) {
-                               self::error("Operation could not be 
completed\n");
-                       }
-
-                       mkdir(dirname($target));
+                       @mkdir(dirname($target), 0777, true);
+               }
+               if (!file_exists(dirname($target))) {
+                       self::error("Operation could not be completed\n");
                }
 
                echo "$sub";
@@ -1555,7 +1554,7 @@
                $use_ext = extension_loaded('phar');
                $version = array(
                        'PHP Version' => phpversion(),
-                       'phar.phar version' => '$Revision: 1.53 $',
+                       'phar.phar version' => '$Revision: 1.54 $',
                        'Phar EXT version' => $use_ext ? phpversion('phar') : 
'Not available',
                        'Phar API version' => Phar::apiVersion(),
                        'Phar-based phar archives' => true,



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to