php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25417 auto_prepend_file value appearing in other virtual hosts
Submitted: 2003-09-07 13:30 UTC Modified: 2003-10-06 17:48 UTC
From: peterb at asceda dot co dot uk Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.3 OS: RH Linux 2.4.18-27.7.xsmp
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: peterb at asceda dot co dot uk
New email:
PHP Version: OS:

 

 [2003-09-07 13:30 UTC] peterb at asceda dot co dot uk
Description:
------------
Apache 2.0.47 prefork with named virtual host support running mod_php.

When running a simple script to execute "phpinfo()" the prepend setting of one virtual host can appear in the settings for a host without a prepend file defined. It may be related to what site an apache child process last served as to what prepend value is displayed.


Reproduce code:
---------------
<VirtualHost #1>
  php_value auto_prepend_file /site1/prepend.php
</VirtualHost>

<VirtualHost #2>
  # No prepend file defined for this site
</VirtualHost>


/usr/local/php/php.ini
# No prepend file defined
auto_prepend_file = 


Expected result:
----------------
Each site should have, and maintain, its own auto_prepend_file setting.

Actual result:
--------------
Sometimes the auto_prepend_file definition from site #1 appears in the phpinfo() output of site #2.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-06 17:48 UTC] sniper@php.net
See bug #25753

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC