Skip to content

Commit 125300b

Browse files
committed
Fix&improve conversion scripts
1 parent 0487650 commit 125300b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ext/standard/basic_functions.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,8 @@ static int php_array_walk(pval **a)
14641464
return 0;
14651465
}
14661466

1467-
PHP_FUNCTION(array_walk) {
1467+
PHP_FUNCTION(array_walk)
1468+
{
14681469
pval *array, *old_walk_func_name;
14691470
HashTable *target_hash;
14701471

scripts/apache/conffix.awk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# $Id$
22

3-
/php3_*/ {
3+
/^[ \t]*php3_*/ {
44
phpcommand=substr($1,6)
55
phpvalue=tolower($2)
66
print "<IfModule mod_php3.c>"
7-
print $1 $2
7+
print $0
88
print "</IfModule>"
99
print "<IfModule mod_php4.c>"
1010
if (phpvalue=="on") {
@@ -17,7 +17,7 @@
1717
print "</IfModule>"
1818
}
1919

20-
! /php3_*/ {
20+
! /^[ \t]*php3_*/ {
2121
print $0
2222
}
2323

scripts/apache/htaccessfix.awk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# $Id$
22

3-
/php3_*/ {
3+
/^[ \t]*php3_*/ {
44
phpcommand=substr($1,6)
55
phpvalue=tolower($2)
66
print "<IfModule mod_php3.c>"
7-
print $1 $2
7+
print $0
88
print "</IfModule>"
99
print "<IfModule mod_php4.c>"
1010
if (phpvalue=="on") {
@@ -17,7 +17,7 @@
1717
print "</IfModule>"
1818
}
1919

20-
! /php3_*/ {
20+
! /^[ \t]*php3_*/ {
2121
print $0
2222
}
2323

0 commit comments

Comments
 (0)