php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26732 php_{flag,value,...} in .htaccess are ignored
Submitted: 2003-12-28 12:17 UTC Modified: 2003-12-28 14:25 UTC
From: dingoth at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.4 OS: windows 2000
Private report: No CVE-ID: None
 [2003-12-28 12:17 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-28 14:25 UTC] iliaa@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 21:01:26 2024 UTC