In .htaccess, several PHP configuration settings are made with the php_value directive. Some of these settings are boolean values, and PHP documentation (http://us2.php.net/configuration.changes) says they should be set with the php_flag directive, not php_value:
Note: Don't use php_value to set boolean values. php_flag should be used instead.
I have not seen any problem using the php_value directive, but for best compatibility it seems advisable to follow PHP's documentation.
The attached patch changes "php_value ... 0" to "php_flag ... off" for the boolean settings: magic_quotes_gpc, register_globals, session.auto_start, and mbstring.encoding_translation.
Comment | File | Size | Author |
---|---|---|---|
#3 | htaccess_php_flag.patch | 976 bytes | maartenvg |
#1 | htaccess_php_flag[1].patch | 968 bytes | Robin Monks |
htaccess_php_flag.patch | 1.79 KB | rbiffl | |
Comments
Comment #1
Robin Monks CreditAttribution: Robin Monks commentedFree re-roll!
Robin
Comment #2
c960657 CreditAttribution: c960657 commentedThe re-rolled patch no longer uses "off" instead of "0". Was that intentional?
Comment #3
maartenvg CreditAttribution: maartenvg commentedReview and tested.
I'm with the original patch, on|off is the preferred method (see mentioned documentation).
Attached is the "off" version of the patch in #1.
Given the small size of this patch, I reckon this is RTBC.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.