Make these tests work regardless of the register_globals setting.

This commit is contained in:
foobar 2001-11-13 12:20:31 +00:00
parent 8b40f3c231
commit 2e3fbf41f9
4 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,6 @@ a=Hello+World
--GET-- --GET--
--FILE-- --FILE--
<?php error_reporting(0); <?php error_reporting(0);
echo $a?> echo $_POST['a']; ?>
--EXPECT-- --EXPECT--
Hello World Hello World

View file

@ -7,6 +7,6 @@ b=Hello+Again+World&c=Hi+Mom
--FILE-- --FILE--
<?php <?php
error_reporting(0); error_reporting(0);
echo "$a $b $c"?> echo "{$_POST['a']} {$_GET['b']} {$_GET['c']}"?>
--EXPECT-- --EXPECT--
Hello World Hello Again World Hi Mom Hello World Hello Again World Hi Mom

View file

@ -6,6 +6,6 @@ a=Hello+World&b=Hello+Again+World
--FILE-- --FILE--
<?php <?php
error_reporting(0); error_reporting(0);
echo "$a $b"?> echo "{$_POST['a']} {$_POST['b']}" ?>
--EXPECT-- --EXPECT--
Hello World Hello Again World Hello World Hello Again World

View file

@ -6,6 +6,6 @@ a=Hello+World&b=Hello+Again+World&c=1
--FILE-- --FILE--
<?php <?php
error_reporting(0); error_reporting(0);
echo "$a $b $c"?> echo "{$_POST['a']} {$_POST['b']} {$_POST['c']}"?>
--EXPECT-- --EXPECT--
Hello World Hello Again World 1 Hello World Hello Again World 1