Edit report at https://bugs.php.net/bug.php?id=20377&edit=1
ID: 20377
Patch added by: sample@email.tst
Reported by: davey at its-explosive dot net
Summary: php_admin_value affects _only_ .htaccess
Status: Analyzed
Type: Feature/Change Request
Package: PHP options/info functions
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626691752
URL: https://bugs.php.net/patch-display.php?bug=20377&patch=kXvrbKwH&revision=1626691752
Previous Comments:
------------------------------------------------------------------------
[2021-07-19 10:49:08] sample at email dot tst
The following patch has been added/updated:
Patch Name: kXvrbKwH
Revision: 1626691748
URL: https://bugs.php.net/patch-display.php?bug=20377&patch=kXvrbKwH&revision=1626691748
------------------------------------------------------------------------
[2019-05-31 12:57:48] house at gmail dot com
The following patch has been added/updated:
Patch Name: 5
Revision: 1559307468
URL: https://bugs.php.net/patch-display.php?bug=20377&patch=5&revision=1559307468
------------------------------------------------------------------------
[2002-11-16 00:57:29] sniper@php.net
I'm reclassifying this and changing to other bug we found
when digging into this mess.. :)
If you set some directive in httpd.conf with php_admin_value
it's not possible to change it anymore in .htaccess. This is okay and the correct behaviour.
BUT it does not make PHP_INI_ALL settings not settable with ini_set() though.
To test this:
httpd.conf:
php_admin_value html_errors 0
.htaccess:
php_value html_errors 1
test.php:
<?php
/* Comment this line out to see the effect of .htaccess..*/
ini_set('html_errors', 1);
phpinfo();
?>
------------------------------------------------------------------------
[2002-11-15 22:23:43] davey at its-explosive dot net
/me points to php_admin_flag and php_admin_value
- Davey
------------------------------------------------------------------------
[2002-11-15 21:25:35] sniper@php.net
".htaccess also falls in the PERDIR class, and it's not a
good idea to allow setting open_basedir and the other settings from this file especially for ISPs
and stuff. --derick "
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=20377
--
Edit this bug report at https://bugs.php.net/bug.php?id=20377&edit=1