OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c047f6
)
make is_absolute_path() work on Windows paths
author
scribu
<mail@scribu.net>
Sun, 12 May 2013 13:37:13 +0000
(16:37 +0300)
committer
scribu
<mail@scribu.net>
Sun, 12 May 2013 13:37:13 +0000
(16:37 +0300)
fixes #447
php/WP_CLI/Runner.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/Runner.php
b/php/WP_CLI/Runner.php
index
fba607a
..
981716d
100644
(file)
--- a/
php/WP_CLI/Runner.php
+++ b/
php/WP_CLI/Runner.php
@@
-110,6
+110,10
@@
class Runner {
}
private static function is_absolute_path( $path ) {
+ // Windows
+ if ( ':' === $path[1] )
+ return true;
+
return $path[0] === '/';
}