mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Make these tests work regardless of the register_globals setting.
This commit is contained in:
parent
8b40f3c231
commit
2e3fbf41f9
4 changed files with 4 additions and 4 deletions
|
@ -5,6 +5,6 @@ a=Hello+World
|
|||
--GET--
|
||||
--FILE--
|
||||
<?php error_reporting(0);
|
||||
echo $a?>
|
||||
echo $_POST['a']; ?>
|
||||
--EXPECT--
|
||||
Hello World
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue