OSDN Git Service

make is_absolute_path() work on Windows paths
authorscribu <mail@scribu.net>
Sun, 12 May 2013 13:37:13 +0000 (16:37 +0300)
committerscribu <mail@scribu.net>
Sun, 12 May 2013 13:37:13 +0000 (16:37 +0300)
fixes #447

php/WP_CLI/Runner.php

index fba607a..981716d 100644 (file)
@@ -110,6 +110,10 @@ class Runner {
        }
 
        private static function is_absolute_path( $path ) {
+               // Windows
+               if ( ':' === $path[1] )
+                       return true;
+
                return $path[0] === '/';
        }