Re: $r->chdir_file for registry revistited

2002-05-22 Thread Per Einar Ellefsen
At 21:43 22.05.2002, Doug MacEachern wrote: >On Thu, 23 May 2002, Stas Bekman wrote: > > > In any case if the wrapper is used, the scripts won't work under > > mod_cgi. On the other hand if File::Basename::dirname() is used > > explicitly the script will still work with mod_cgi. > >good point. we

Re: $r->chdir_file for registry revistited

2002-05-22 Thread Doug MacEachern
On Thu, 23 May 2002, Stas Bekman wrote: > In any case if the wrapper is used, the scripts won't work under > mod_cgi. On the other hand if File::Basename::dirname() is used > explicitly the script will still work with mod_cgi. good point. we should probably not bother providing something spe

$r->chdir_file for registry revistited

2002-05-22 Thread Stas Bekman
i'm working on the issue with chdir, which we cannot use in 2.0, because it's not thread-safe. The issue of require() and friends when they use relative paths is easily resolved by pushing the script's dir as the first element of @INC. The big issue is the open() call when it tries to open a f