Permalink
Browse files

Fix&improve conversion scripts

  • Loading branch information...
1 parent 0487650 commit 125300b56328d1c56c61efa72f53499c1a586e3e @zsuraski zsuraski committed Aug 7, 1999
Showing with 8 additions and 7 deletions.
  1. +2 −1 ext/standard/basic_functions.c
  2. +3 −3 scripts/apache/conffix.awk
  3. +3 −3 scripts/apache/htaccessfix.awk
View
3 ext/standard/basic_functions.c
@@ -1464,7 +1464,8 @@ static int php_array_walk(pval **a)
return 0;
}
-PHP_FUNCTION(array_walk) {
+PHP_FUNCTION(array_walk)
+{
pval *array, *old_walk_func_name;
HashTable *target_hash;
View
6 scripts/apache/conffix.awk
@@ -1,10 +1,10 @@
# $Id$
-/php3_*/ {
+/^[ \t]*php3_*/ {
phpcommand=substr($1,6)
phpvalue=tolower($2)
print "<IfModule mod_php3.c>"
- print $1 $2
+ print $0
print "</IfModule>"
print "<IfModule mod_php4.c>"
if (phpvalue=="on") {
@@ -17,7 +17,7 @@
print "</IfModule>"
}
-! /php3_*/ {
+! /^[ \t]*php3_*/ {
print $0
}
View
6 scripts/apache/htaccessfix.awk
@@ -1,10 +1,10 @@
# $Id$
-/php3_*/ {
+/^[ \t]*php3_*/ {
phpcommand=substr($1,6)
phpvalue=tolower($2)
print "<IfModule mod_php3.c>"
- print $1 $2
+ print $0
print "</IfModule>"
print "<IfModule mod_php4.c>"
if (phpvalue=="on") {
@@ -17,7 +17,7 @@
print "</IfModule>"
}
-! /php3_*/ {
+! /^[ \t]*php3_*/ {
print $0
}

0 comments on commit 125300b

Please sign in to comment.