Re: include_path question

From: Date: Sun, 27 Aug 2000 19:14:32 +0000
Subject: Re: include_path question
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30833@lists.php.net to get a copy of this message
On Sun, 27 Aug 2000, Andi Gutmans wrote: > At 09:48 PM 8/27/00 +0300, Andi Gutmans wrote: > >> The change breaks SAPI modules which pass a relative path to > >> PHP (i.e. foo/bar/file.php). PHP will now chdir to foo/bar > >> and will try to open the file foo/bar/file.php in that > >> directory which will fail, of course. > > > >What SAPI module passes relative path? path_translated should always be > >full path and if it is not then it's a problem in the SAPI modules and not > >in main.c. > > BTW, I can see how my patch is also wrong. Maybe the whole move you made > shouldn't have been made. > We need to think of a *right* way to fix this issue. Well, the bad part is that there is no documentation anywhere about how all this stuff interacts. By moving logic from the single SAPI module to a more central location we get at least consistent behaviour across all SAPI modules. This is good, because it makes PHP scripts "portable" across multiple web-servers. What is wrong with your patch? It should work with every web server which passes an absolute path in primary_file. - Sascha

« previous php.dev (#30833) next »