diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-10-06 12:01:22 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-10-06 12:29:04 +0200 |
commit | 61330b0faf5dfbed79cba012744dabce9d20cc8f (patch) | |
tree | f60c66c5fdac11ae5b17278f79ad84094df67bd7 | |
parent | e25b23ed0c3670bee4edb1d5e1360303c8ee483f (diff) | |
download | php-git-61330b0faf5dfbed79cba012744dabce9d20cc8f.tar.gz |
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.
-rw-r--r-- | ext/filter/tests/bug49184.phpt | 2 | ||||
-rw-r--r-- | ext/snmp/tests/snmp2_set-nomib.phpt | 2 | ||||
-rw-r--r-- | ext/snmp/tests/snmpset-nomib.phpt | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/ext/filter/tests/bug49184.phpt b/ext/filter/tests/bug49184.phpt index 86d35db0d5..8ed142d73a 100644 --- a/ext/filter/tests/bug49184.phpt +++ b/ext/filter/tests/bug49184.phpt @@ -5,9 +5,7 @@ See Bug #49184 --SKIPIF-- <?php if (!extension_loaded("filter")) die("skip needs filter ext"); ?> --ENV-- -return <<<END HTTP_X_FORWARDED_FOR=example.com -END; --FILE-- <?php var_dump(filter_input(INPUT_SERVER, "HTTP_X_FORWARDED_FOR", FILTER_UNSAFE_RAW)); diff --git a/ext/snmp/tests/snmp2_set-nomib.phpt b/ext/snmp/tests/snmp2_set-nomib.phpt index af0baa3fdd..e1714d6ab9 100644 --- a/ext/snmp/tests/snmp2_set-nomib.phpt +++ b/ext/snmp/tests/snmp2_set-nomib.phpt @@ -7,9 +7,7 @@ Boris Lytockin require_once(dirname(__FILE__).'/skipif.inc'); ?> --ENV-- -return <<<END MIBS= -END; --FILE-- <?php require_once(dirname(__FILE__).'/snmp_include.inc'); diff --git a/ext/snmp/tests/snmpset-nomib.phpt b/ext/snmp/tests/snmpset-nomib.phpt index 7428e57c78..7b72bff979 100644 --- a/ext/snmp/tests/snmpset-nomib.phpt +++ b/ext/snmp/tests/snmpset-nomib.phpt @@ -7,9 +7,7 @@ Boris Lytochkin require_once(dirname(__FILE__).'/skipif.inc'); ?> --ENV-- -return <<<END MIBS= -END; --FILE-- <?php require_once(dirname(__FILE__).'/snmp_include.inc'); |