note 58599 added to function.ini-get
| From: | php-general at lists dot php dot net | Date: | Wed, 09 Nov 2005 09:56:21 +0000 |
| Subject: | note 58599 added to function.ini-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98320@lists.php.net to get a copy of this message | ||
@marcus at synchromedia dot co dot uk
you misunderstood the comment. Of course you can use on and off, and they will work correctly.
But this entry is about *ini_get*. And if you ini_get() a value that is set to "off" in
php.ini, you get returned 0 (as described above in the documentation). If you ini_get() a value that
is set to "off" via .htaccess, you will be returned the string "off", which - if
you use it in an if-clause, will be autoconverted to 1 (as is usual for strings).
So the problem is that which is returned by ini_get(), not what you can and cannot use in .htaccess.
Sorry being unclear about this.
----
Manual Page -- http://www.php.net/manual/en/function.ini-get.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58599
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58599&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58599&report=yes
Search -- http://master.php.net/manage/user-notes.php