|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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


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

<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
  # 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
  # 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 13:26 UTC]
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: Wed Jul 24 03:01:28 2024 UTC