php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1882 scripts/apache/apconf-conv.sh doesn't work correctly
Submitted: 1999-07-26 13:01 UTC Modified: 1999-08-07 11:35 UTC
From: ogura at hde dot co dot jp Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Latest CVS (26/07/1999) OS: Linux 2.0.36
Private report: No CVE-ID: None
 [1999-07-26 13:01 UTC] ogura at hde dot co dot jp
php3_asp_tags On
   |
   V
<IfModule mod_php3.c>
php3_asp_tagsOn
</IfModule>
<IfModule mod_php4.c>
php_admin_flag asp_tags on
</IfModule>

LoadModule php3_module        /usr/lib/apache/libphp3.so
   |
   V
<IfModule mod_php3.c>
LoadModule php3_module
</IfModule>
<IfModule mod_php4.c>
php_admin_value odule php3_module        /usr/lib/apache/libphp3.so
</IfModule>

I've done some *very* small fixes on conffix.awk.
looks like working.
---
/php3_.*/ && !/php3_module/ {
        phpcommand=substr($1,6)
        phpvalue=tolower($2)
        print "<IfModule mod_php3.c>"
        print $1 " " $2
        print "</IfModule>"
        print "<IfModule mod_php4.c>"
        if (phpvalue=="on") {
                print "php_admin_flag " phpcommand " on"
        } else  if (phpvalue=="off") {
                print "php_admin_flag " phpcommand " off"
        } else {
                print "php_admin_value " phpcommand " " substr($0,index($0,$1)+length($1)+1)
        }
        print "</IfModule>"
}

! /php3_.*/  || /php3_module/{
        print $0
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-07 11:35 UTC] zeev at cvs dot php dot net
The conversion script was significantly improved, and should now
only match lines that actually begin with php3_ (possibly with
leading whitespace), and not any lines that contain php3_.
Also, it now generates valid output for the PHP 3.0 directives.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 08:01:31 2024 UTC