Skip to content

Commit 61330b0

Browse files
committed
Fix PHPT ENV sections
run-tests.php assumes the contents of an ENV section are a simple list of key-value-pairs, instead of evaluating the section contents as PHP script which server-tests.php did. Since server-tests.php is gone, we remove the superfluous and confusing scripting.
1 parent e25b23e commit 61330b0

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

ext/filter/tests/bug49184.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ See Bug #49184
55
--SKIPIF--
66
<?php if (!extension_loaded("filter")) die("skip needs filter ext"); ?>
77
--ENV--
8-
return <<<END
98
HTTP_X_FORWARDED_FOR=example.com
10-
END;
119
--FILE--
1210
<?php
1311
var_dump(filter_input(INPUT_SERVER, "HTTP_X_FORWARDED_FOR", FILTER_UNSAFE_RAW));

ext/snmp/tests/snmp2_set-nomib.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Boris Lytockin
77
require_once(dirname(__FILE__).'/skipif.inc');
88
?>
99
--ENV--
10-
return <<<END
1110
MIBS=
12-
END;
1311
--FILE--
1412
<?php
1513
require_once(dirname(__FILE__).'/snmp_include.inc');

ext/snmp/tests/snmpset-nomib.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Boris Lytochkin
77
require_once(dirname(__FILE__).'/skipif.inc');
88
?>
99
--ENV--
10-
return <<<END
1110
MIBS=
12-
END;
1311
--FILE--
1412
<?php
1513
require_once(dirname(__FILE__).'/snmp_include.inc');

0 commit comments

Comments
 (0)