On Mon, 28 May 2001, Gerald Richter wrote:
 
> I don't think that has anything to do with this change in the start
> directory. Apache::Registry calls
> 
> $r->chdir_file;
> 
> which should change the current directory to the one of the file, but it
> doesn't with ActiveState Perl.
> chdir_file in defined in Apache.xs, which calls ap_chdir_file with
> r->filename as argument and this function simply looks for a / and calls
> chdir.
> 
> I guess the problem is that chdir on windows doesn't like a path with / as
> path separators. So it seems that it is actualy an Apache bug...

this note from modperl-2.0/todo/api.txt might be worth considering for
1.x/win32:
$r->chdir_file:
not safe for threaded environments.  should at least unshift @INC with
dirname $r->filename.  consider overriding open() to resolve relative
filenames.

there is not ap_chdir_file() at all in 2.0.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to