#26732 [Opn->Bgs]: php_{flag,value,...} in .htaccess are ignored
| From: | iliaa@php.net | Date: | Sun, 28 Dec 2003 19:25:48 +0000 |
| Subject: | #26732 [Opn->Bgs]: php_{flag,value,...} in .htaccess are ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52547@lists.php.net to get a copy of this message | ||
ID: 26732
Updated by: iliaa@php.net
Reported By: dingoth at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: windows 2000
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You should be using php_admin_flag/value when setting php ini settings
inside httpd.conf
Previous Comments:
------------------------------------------------------------------------
[2003-12-28 12:17:45] dingoth at hotmail dot com
Description:
------------
I have Apache 2.0.47, PHP 4.3.4, with virtual hosts under windows
2000.
In every host, a .htaccess file is used to define its own include_path,
prepend_file, append_file.
The structure of my directory is like this one : (arena is a virtual
host)
H:\www\arena\htdocs << website
H:\www\arena\includes << files to be included
So, here is a common .htaccess source :
<IfModule php4_module.c>
php_value include_path ".;H:\www\arena\includes"
php_value auto_prepend_file "prepend.php"
php_value auto_append_file "append.php"
</IfModule>
So, when I call the following script within a page under my htdocs
directory :
<?php echo get_include_path(); ?>
The webpage shows exactly .;D:\dev\php\includes . That line is the
default include_path I use in my php.ini ! It would write
.;H:\www\arena\includes because I asked it in the .htaccess file !
Reproduce code:
---------------
<?php echo get_include_path(); ?>
Expected result:
----------------
.;H:\www\arena\includes
Actual result:
--------------
.;D:\dev\php\includes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26732&edit=1