Re: Bug #11144 [NEW]: Recent commit to support chdir better broke tests on win
| From: | Tias | Date: | Sat, 26 May 2007 14:34:14 +0000 |
| Subject: | Re: Bug #11144 [NEW]: Recent commit to support chdir better broke tests on win | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-4323@lists.php.net to get a copy of this message | ||
Sorry, I was unaware of the path separator difference, thanks for the
fix.
On Fri, May 25, 2007 at 06:35:38PM -0000, dufuz at php dot net wrote:
> From: dufuz
> Operating system: Win XP sp2
> Package version: CVS
> PHP version: Irrelevant
> Package: PEAR
> Bug Type: Bug
> Bug description: Recent commit to support chdir better broke tests on win
>
> Description:
> ------------
> The recent addition was like this:
> set_include_path(get_include_path().':'.getcwd()); // allows chdir
>
> but should be like this:
> set_include_path(get_include_path(). PATH_SEPARATOR .getcwd()); // allows
> chdir
>
> The reason, path separators aren't the same on win and *nix
>
>
> --
> Edit bug report at
> http://pear.php.net/bugs/bug.php?id=11144&edit=1
> --
>