php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3525 Strange php3_* configuration results while using .htaccess
Submitted: 2000-02-17 19:59 UTC Modified: 2002-10-01 13:53 UTC
From: pumuckel at metropolis dot de Assigned:
Status: Wont fix Package: Misbehaving function
PHP Version: 3.0.14 OS: all
Private report: No CVE-ID: None
 [2000-02-17 19:59 UTC] pumuckel at metropolis dot de
Hi,

upgrading from 3.0.11 to 3.0.14 we runned into a strange configuration problem for all of the php3_* parameters. Since I've seen you've changed this code (mod_php3.c) I assume that you didn't check this out:

Assume you have a config in httpd.conf in a virtual host like:

<VirtualHost ANY.HOST>
php3_include_path .:./inc/:/path/to/somewhere/inc/
php3_auto_prepend_file header.php3
...
</VirtualHost>

If you _now_ have a .htaccess file somewhere in the document root of this vhost, 3.0.11 only has overwritten new parameters from within this .htaccess file.

NOW it deletes _all_ defined php3_* parameters from the vhost and inserts just those which are present in the .htaccess file.

E.g. if the .htaccess file contains

php3_include_path /path/to/somewhere/else

it will delete the php3_auto_prepend_file

And I don't think that this is a good idea (all other php3 parameters are cleared as well, eg. logging parameters etc)

Bug or Feature? Why isn't this change documented in the changelog, anyway?

 /mike



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 13:53 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 00:01:27 2024 UTC