@import don't work under Windows using cli.php #42

Closed
amercier opened this Issue Jan 14, 2013 · 1 comment

2 participants

@amercier

I found out that replacing

$this->docRoot = isset( $this->options->doc_root ) ?
    $this->options->doc_root : $config->docRoot;

with

$this->docRoot = str_replace('/', DIRECTORY_SEPARATOR, isset( $this->options->doc_root ) ?
    $this->options->doc_root : $config->docRoot);

in Process.php fixes the issue. You have to un-normalize the path otherwise it is looking for filepath such as C:/MyFolder/MySubFolder/etc/... instead of C:\MyFolder\MySubFolder\etc...

@peteboere peteboere added a commit that referenced this issue Jan 14, 2013
@peteboere Issue #42 (@import don't work under Windows using cli.php)
Additionally the --context option was casting to array (typo).
e0405bb
@peteboere
Owner

Thanks for reporting this.

I've pushed a fix to the test branch. Also fixed another bug in the process so will likely be pushing a patch release soon.

@peteboere peteboere closed this Feb 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment