Re: open_base_dir and apache vhosts

From: Date: Wed, 07 May 2003 17:17:09 +0000
Subject: Re: open_base_dir and apache vhosts
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1360@lists.php.net to get a copy of this message
On Wed, 7 May 2003, Rasmus Lerdorf wrote: > On Wed, 7 May 2003, Edin Kadribasic wrote: > > > On Wed, 7 May 2003, Rasmus Lerdorf wrote: > > > > > On Wed, 7 May 2003, Edin Kadribasic wrote: > > > > There are several people who are reporting on the bugs site that if > > > > you enable open_base_dir on 1 vhost it > > > > affects all vhosts in PHP ever since 4.2.2. Didn't you report that > > > > this issue was solved? > > > > > > It should be fine in the current CVS > > > > I've just seen it happening as described in #23504. It took some reloading > > but sure it appeared. Seems to be related to #23462. > > Then theoretically you should see it with any directive. open_basedir is > handled by the same code that does all the other string directives. I see > no significant changes between 4.2 and 4.3 in the sapi/apache/mod_php4.c > file. Just some Netware stuff and changing a bunch of functions to be > static. There were some changes in Zend/zend_ini.c between the two > versions which I suppose could be causing this. The difference is that its the script itself that php refuses to load so it happens before the execution starts. > What happens if you reverse this patch: > > šö > ÑŸ<þ‡è›Á)ÙRhttp://cvs.php.net/diff.php/Zend/zend_ini.c?login=2&r1=1.22&r2=1.23&ty=u > > Can you still make it happen? I was unable to reproduce this myself but I have seen it happen on the box described in #23504. That chap is helping me find out if a slight code sequence change in mod_php4.c can help the issue. So far so good. Edin

« previous php.internals (#1360) next »