php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4121 Apache .conf directive problem
Submitted: 2000-04-12 19:34 UTC Modified: 2002-10-01 13:26 UTC
From: jeremiah at emphasys dot net Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.16 OS: Redhat 6.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jeremiah at emphasys dot net
New email:
PHP Version: OS:

 

 [2000-04-12 19:34 UTC] jeremiah at emphasys dot net
During an upgrade from PHP 3.0.12 to PHP 3.0.16, 
I discovered the following unexpected/changed behavior 
from Apache .conf directive parsing.

I think this may be a result of the patch to mod_php3.c between releases
3.0.12 and 3.0.13:
    Revision 1.93 Sat Sep 18 22:12:09 1999 UTC by rasmus 
    Changed since 1.92: +57 -54 lines
    I think this should finally fix the Apache .conf directive problems
    related to overriding directives set at higher levels inside sub-dirs

Example:

php3.ini
########
...
engine = Off ; disable PHP 3.0 parser by default
magic_quotes_gpc = On ; magic quotes for incoming GET/POST/Cookie data
...


httpd.conf
##########
...
<VirtualHost _default_:*>
...
  DocumentRoot /www/apache/htdocs
  php3_engine on
  # Files in test/ dir are parsed as expected 
  # but only because we have given "php3_engine on"
  <Directory /www/apache/htdocs/test>
    php3_engine on
    php3_magic_quotes_gpc Off
  </Directory>
  
  # Files in test/subdir/ are not parsed by php 
  # It seems php3.ini engine = Off is reapplied 
  # ignoring that the parent dir's "php3_engine on"
  <Directory /www/apache/htdocs/test/subdir>
    php3_magic_quotes_gpc On
  </Directory>
  
  # Files in test2/ are not parsed by php 
  # It seems php3.ini engine = Off is reapplied 
  # ignoring the VirtualHost's "php3_engine on"
  <Directory /www/apache/htdocs/test2>
    php3_magic_quotes_gpc Off
  </Directory>
...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 13:26 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: Sat Dec 21 14:01:32 2024 UTC