note 19874 added to function.ini-set
| From: | johnzoet at netscape dot com | Date: | Wed, 13 Mar 2002 23:13:49 +0000 |
| Subject: | note 19874 added to function.ini-set | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27759@lists.php.net to get a copy of this message | ||
When a setting can not be changed in a user script, the return value of ini_set is
"empty", not "false" as you may expect.
If you check in your script for return value is "false" the script will continue
processing, although the setting has not been set.
The boolean return value is used for settings that can be changed in a script. Otherwise the empty
value is returned.
To test for both error conditions use:
if (empty($blnResult) or (!$blnResult)) {
echo "setting cannot be set";
exit;
}
--
http://www.php.net/manual/en/function.ini-set.php
http://master.php.net/manage/user-notes.php?action=edit+19874
http://master.php.net/manage/user-notes.php?action=delete+19874
http://master.php.net/manage/user-notes.php?action=reject+19874