note 58338 added to function.ini-get
| From: | php-general at lists dot php dot net | Date: | Tue, 01 Nov 2005 07:16:05 +0000 |
| Subject: | note 58338 added to function.ini-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97907@lists.php.net to get a copy of this message | ||
Important: The manual says that ini_get will return 0 or an empty string for boolean config values
that are set to off in php.ini.
This is technically correct, however when you use
php_value register_globals off
in an .htaccess file, ini_get will return the string, which will "evaluate" to 1. So if
you are using mod_php you have to check boolean config values against the strings (upper/lowercase
etc.) anyhow or you will get wrong results.
----
Manual Page -- http://www.php.net/manual/en/function.ini-get.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58338
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58338&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58338&report=yes
Search -- http://master.php.net/manage/user-notes.php