Re: ini_set() broken?
| From: | Rasmus Lerdorf | Date: | Mon, 08 Jul 2002 17:40:56 +0000 |
| Subject: | Re: ini_set() broken? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106137@lists.php.net to get a copy of this message | ||
master is the top-level default value set in either your php.ini if you
have that file and have a specific value set, or ir not it is the PHP
default for the config value. The local is the per-request setting set
either in httpd.conf, .htaccess or locally in the script.
On Mon, 8 Jul 2002, Philip Olson wrote:
> Hello Rasmus-
>
> How do you suggest ini_set() document these differences? Maybe
> the table at ini_set() could use another column, for descriptions
> and notes. Also, could you give a concise description for the
> differences between local and master values?
>
> Regards,
> Philip Olson
>
>
>
>
> On Mon, 8 Jul 2002, Rasmus Lerdorf wrote:
>
> > Well, you can set it at runtime, it just won't do what you might expect.
> > That doesn't mean that it may not be useful to be able to set it at
> > runtime. If, for example, you have register_globals off and you write an
> > auto-prepend script, or even just a normal snippet of code that you insert
> > into some other app at the beginning that emulates register_globals, then
> > you may want to set register_globals = on at runtime so that any
> > subsequent checks by the app will behave correctly.
> >
> > -Rasmus
> >
> > On Mon, 8 Jul 2002, Philip Olson wrote:
> >
> > >
> > > You cannot set register_globals at runtime via
> > > ini_set(). The documentation goes off the PHP4
> > > source which is, to put it simply, a little wrong.
> > > The PHP4 source says register_globals is PHP_INI_ALL
> > > when in the real world it isn't. .htaccess
> > > is as close as you'll get.
> > >
> > > The ini_set() docs are autogenerated and this issue
> > > is being looked into. The correct docs on this are
> > > now in phpdoc CVS and will show up soon.
> > >
> > > In short, don't attempt to set register_globals
> > > at runtime as explained by a few in this thread,
> > > it won't fully work as expected.
> > >
> > > Regards,
> > > Philip Olson
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>