Re: Great bug into php3_merge_dir()

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Great bug into php3_merge_dir()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11051@lists.php.net to get a copy of this message
In the merge_dir function try adding this line after the memcpy() orig = *((php3_ini_structure *)base); On Sat, 18 Sep 1999, Federico Giannici wrote: > I really cannot understand the logic used into the php3_merge_dir() > function of mod_php3.c! > According to me it's bugged!!! > > Let's make an example. > > I want to make php disabled by default and then enable it only in some > selected directory of some virtualhost. So I put a "php3_engine off" > into the root of httpd.conf (outside of every virtual host). Then I put > a "php3_engine on" into some <Directory xxx> into some virtualhost, so > (I thought) php is enabled only there. > > Well, this configuration doesn't works because of the incomprensible > php3_merge_dir() logic: it only add new commands into a new directory > configuration only if they are different from the default configuration. > That is, "php3_engine on" is NEVER added!!! > > Please, tell me if either I'm terribly stupid, or the php3_merge_dir() > is terribly bugged! > > Thanks. > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#11051) next »