summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-11-13 12:20:31 +0000
committerfoobar <sniper@php.net>2001-11-13 12:20:31 +0000
commit2e3fbf41f9341da9a9fc022519fad0ff44f79e62 (patch)
tree7b979102310b42eda18058ef63b21fb0dbe5d8fd /tests/basic
parent8b40f3c2315bbd6164a3e8459f59b1f8df3babd3 (diff)
downloadphp-git-2e3fbf41f9341da9a9fc022519fad0ff44f79e62.tar.gz
Make these tests work regardless of the register_globals setting.
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/002.phpt2
-rw-r--r--tests/basic/003.phpt2
-rw-r--r--tests/basic/004.phpt2
-rw-r--r--tests/basic/005.phpt2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/basic/002.phpt b/tests/basic/002.phpt
index d694a201c2..6ea0c11fa1 100644
--- a/tests/basic/002.phpt
+++ b/tests/basic/002.phpt
@@ -5,6 +5,6 @@ a=Hello+World
--GET--
--FILE--
<?php error_reporting(0);
-echo $a?>
+echo $_POST['a']; ?>
--EXPECT--
Hello World
diff --git a/tests/basic/003.phpt b/tests/basic/003.phpt
index c728a79efd..9c105f7398 100644
--- a/tests/basic/003.phpt
+++ b/tests/basic/003.phpt
@@ -7,6 +7,6 @@ b=Hello+Again+World&c=Hi+Mom
--FILE--
<?php
error_reporting(0);
-echo "$a $b $c"?>
+echo "{$_POST['a']} {$_GET['b']} {$_GET['c']}"?>
--EXPECT--
Hello World Hello Again World Hi Mom
diff --git a/tests/basic/004.phpt b/tests/basic/004.phpt
index 4e8eb2b2c0..b7e50e0f33 100644
--- a/tests/basic/004.phpt
+++ b/tests/basic/004.phpt
@@ -6,6 +6,6 @@ a=Hello+World&b=Hello+Again+World
--FILE--
<?php
error_reporting(0);
-echo "$a $b"?>
+echo "{$_POST['a']} {$_POST['b']}" ?>
--EXPECT--
Hello World Hello Again World
diff --git a/tests/basic/005.phpt b/tests/basic/005.phpt
index 9a30c59194..651b83d81a 100644
--- a/tests/basic/005.phpt
+++ b/tests/basic/005.phpt
@@ -6,6 +6,6 @@ a=Hello+World&b=Hello+Again+World&c=1
--FILE--
<?php
error_reporting(0);
-echo "$a $b $c"?>
+echo "{$_POST['a']} {$_POST['b']} {$_POST['c']}"?>
--EXPECT--
Hello World Hello Again World 1