IA>>1) Stock php.ini does not use Yes/True for any values, it uses On or 1,
IA>>implying that disabling is Off or 0.
php.ini docs say:
; Boolean values can be set to either:
; true, on, yes
; or false, off, no, none
So, true, on and yes are officially supported boolean values as far as
configuration concerned.
IA>>2) There are many wonderful notes in various docs on the web indicating that
IA>>when setting PHP options inside httpd.conf etc... 0/1 should be used for
IA>>boolean values.
So you say it's ok because somewhere on the net there's a note that
explains workaround to that? (I presume the note title says "Beware of
the leopard!" ;)
IA>>3) The docs for INI settings themselves and ini_set() never use or
IA>>mention anything other then On or 1 as possible values.
The docs for php.ini do - and there's no any indication in any place that
settings that work in php.ini don't work on any other ini mechanisms. It
is right that the contrary is not written either - but only because it's
natural that any setting you set in php.ini would work the same if you set
it with -d, .htaccess, ini_set or any other way. And ini_set docs page
does not say a thing about allowed input values at all.
Also, do you think anybody in the world relies on "true" being 0 for
ini_set - that would be really bizzare behvaiour and could not be derived
from any of the docs. So I see no problem setting it straight.
--
Stanislav Malyshev, Zend Products Engineer
stas@xxxxxxxx http://www.zend.com/ +972-3-6139665 ext.115
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|