php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29695 php_admin_value being overriden by php_value
Submitted: 2004-08-16 05:08 UTC Modified: 2005-03-20 01:00 UTC
From: mvl22 at mailinator dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 5.0.1 OS: Windows XP
Private report: No CVE-ID: None
 [2004-08-16 05:08 UTC] mvl22 at mailinator dot com
Description:
------------
http://uk.php.net/configuration.changes
states:

"php_admin_value ... Any directive type set with php_admin_value can not be overridden by .htaccess or virtualhost directives"

In my httpd.conf I have:
php_admin_value include_path "C:/path/to/directory/"

In my .htaccess file (which has Allowoverride all) I have:
#php_value include_path /home/sites/sitex/web/

phpinfo () gives:
include_path
Local value:/home/sites/sitex/web/

if I uncomment the line in .htaccess, to:
php_value include_path /home/sites/sitex/web/

phpinfo () gives:
include_path
Local value:C:/path/to/directory/

Clearly, php_admin_value is being read, because it wouldn't appear in this second case. However, when php_value is present, it IS being overriden, which seems to be incorrect behaviour.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-16 05:12 UTC] mvl22 at mailinator dot com
Sorry, the lines
Local value:/home/sites/sitex/web/
and
Local value:C:/path/to/directory/

in my report should be swapped over.
 [2005-03-07 20:24 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

I can not reproduce this. (What apache version do you have?)

 [2005-03-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 23:01:29 2024 UTC