note 32143 added to configuration.changes
| From: | jdell_nv at rack1 dot php dot net | Date: | Sun, 18 May 2003 20:35:02 +0000 |
| Subject: | note 32143 added to configuration.changes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48547@lists.php.net to get a copy of this message | ||
Make sure you don't set boolean directives in .htaccess with php_value!!!
If you set a boolean directive in .htaccess with php_value rather than php_flag, such as...
php_value magic_quotes_gpc Off
ini_get will not convert this to a [blank] as indicated in the ini_get documenation. This can bite
you if you have logic that says "if (ini_get('magic_quotes_gpc')) ..." because
ini_get will return "Off" that evaluates to TRUE.
You can work around this by setting....
php_value magic_quotes_gpc 1
However, the best solution is to use php_flag when setting boolean directives so you always get
consistent results whether options are set from .htacess or php.ini
----
Manual Page -- http://www.php.net/manual/en/configuration.changes.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32143
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32143&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32143&report=yes