summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/basic/bug46759.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/basic/bug46759.phpt b/tests/basic/bug46759.phpt
new file mode 100644
index 0000000000..fdbd595546
--- /dev/null
+++ b/tests/basic/bug46759.phpt
@@ -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: \\\"