php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33867 auto_prepend_file doesn't work in httpd.conf
Submitted: 2005-07-26 17:16 UTC Modified: 2005-08-03 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: t4 at wks dot ch Assigned:
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: 4.3.11 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: t4 at wks dot ch
New email:
PHP Version: OS:

 

 [2005-07-26 17:16 UTC] t4 at wks dot ch
Description:
------------
Auto_prepend_file in .htaccess works:

httpd.conf: AccessFileName .htaccess
.htaccess:  Php_value auto_prepend_file /absolute_path/prepend_file.php


Auto_prepend_file in httpd.conf doesn't work:

httpd.conf: <Directory /documentroot/path/>
httpd.conf:   Php_value auto_prepend_file /absolute_path/prepend_file.php
httpd.conf: </Directory>


Expected result:
----------------
The expected result is that /absolute_path/prepend_file.php gets executed.

Actual result:
--------------
It does not get executed and there's nothing visibile in the errorlog.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-26 17:40 UTC] tony2001@php.net
Please try using this CVS snapshot:

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

Can't reproduce it with 4.4.0.
 [2005-08-03 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".
 [2005-09-04 15:44 UTC] csaba at alum dot mit dot edu
I have tested this on my system with the 2005 Aug 31 version of PHP 5.0.1 / Apache 2.0.53 / Win XP Pro and cannot reproduce the problem.  I can both disable what is in the php.ini with
PHP_value auto_prepend_file none

or override it with
PHP_value auto_prepend_file c:/phplib/prepend_file.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC