com php-src: Fix PHPT ENV sections: ext/filter/tests/bug49184.phpt ext/snmp/tests/snmp2_set-nomib.phpt ext/snmp/tests/snmp set-nomib.phpt
| From: | Christoph Michael Becker | Date: | Sat, 06 Oct 2018 10:29:04 +0000 |
| Subject: | com php-src: Fix PHPT ENV sections: ext/filter/tests/bug49184.phpt ext/snmp/tests/snmp2_set-nomib.phpt ext/snmp/tests/snmp set-nomib.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-103374@lists.php.net to get a copy of this message | ||
Commit: 61330b0faf5dfbed79cba012744dabce9d20cc8f
Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 6 Oct 2018 12:01:22 +0200
Parents: e25b23ed0c3670bee4edb1d5e1360303c8ee483f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61330b0faf5dfbed79cba012744dabce9d20cc8f
Log:
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.
Changed paths:
M ext/filter/tests/bug49184.phpt
M ext/snmp/tests/snmp2_set-nomib.phpt
M ext/snmp/tests/snmpset-nomib.phpt
Diff:
diff --git a/ext/filter/tests/bug49184.phpt b/ext/filter/tests/bug49184.phpt
index 86d35db..8ed142d 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 af0baa3..e1714d6 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 7428e57..7b72bff 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');