php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12210 DirectoryMatch/php_value/.htaccess
Submitted: 2001-07-17 12:35 UTC Modified: 2002-02-02 06:38 UTC
From: john at scl dot co dot uk Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.0.5 OS: linux 2.2.19
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: john at scl dot co dot uk
New email:
PHP Version: OS:

 

 [2001-07-17 12:35 UTC] john at scl dot co dot uk
Apache version 1.3.14

IF a php_XXX config directive (maybe ANY php_XXX config
directive) is used inside a <DirectoryMatch> section in the
Apache server config file
THEN
	IF other (maybe ANY) php_XXX's are used in an
	.htaccess file within a directory which is matched
	by the <DirectoryMatch>
	THEN
		these php_XXX's will only be honoured
		when the server is restarted. Subsequent
		changes to these directives in the
		.htaccess file will be ignored.

For example,

in httpd.conf put:

<DirectoryMatch ^/home/httpd/html/buggy/>
php_admin_value sendmail_path /some/path/to/sendmail
</DirectoryMatch>

in /home/httpd/html/buggy/.htaccess put
php_value include_path somedir

and then call phpinfo() from with a file in the same
directory.  On starting Apache, sendmail_path and
include_path will be as above but subsequently changing
the value of include_path will have no effect unless the
server is restarted.  However, if the php_admin_value in
the server config file is removed and the server restarted,
changes to the include_path in the .htaccess file will
be registered immediately (as should be).

Further, FWIW:

1) Directory as opposed to DirectoryMatch seems to be OK.
2) Non php_XXX apache directives function OK in both
   contexts.  Hence I am filing this as a bug here rather
   than to Apache.
3) At times(!),  I have got a bizarre "toggle" effect when
   reloading phpinfo() i.e. alternate hits show first "old"
   value of include_path and then the "new" value!
4) I have conducted all tests using Lynx and thus am
   confident that there has been no cache nonsense going on.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-12 14:45 UTC] lobbin@php.net
Can you reproduce this with the latest apache and php?
 [2002-02-02 06:38 UTC] sander@php.net
No feedback was provided for this bug, so it is being suspended.
If you are able to provide the information that was 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: Sat Dec 21 15:01:29 2024 UTC