]> granicus.if.org Git - php/commitdiff
MFB 5.3 Add test for the recent magic_quotes_gpc regression.
authorScott MacVicar <scottmac@php.net>
Tue, 9 Dec 2008 01:48:32 +0000 (01:48 +0000)
committerScott MacVicar <scottmac@php.net>
Tue, 9 Dec 2008 01:48:32 +0000 (01:48 +0000)
tests/basic/bug46759.phpt [new file with mode: 0644]

diff --git a/tests/basic/bug46759.phpt b/tests/basic/bug46759.phpt
new file mode 100644 (file)
index 0000000..fdbd595
--- /dev/null
@@ -0,0 +1,21 @@
+--TEST--
+Testing magic_quotes_gpc
+--SKIPIF--
+<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
+--INI--
+magic_quotes_gpc=1
+--GET--
+a='&b="&c=\"
+--FILE--
+<?php 
+
+foreach ($_GET AS $key => $value)
+{
+       echo $key . ": " . $value . "\n";
+}
+
+?>
+--EXPECT--
+a: \'
+b: \"
+c: \\\"