summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-12-09 01:47:57 +0000
committerScott MacVicar <scottmac@php.net>2008-12-09 01:47:57 +0000
commitd8edbd27296ae28a766ebdd83372597479e25473 (patch)
tree269113cb06b06aa8283f479deac832c8729375e0 /tests
parenta6841bf66b06705f025c49982f056a028ad88ddf (diff)
downloadphp-git-d8edbd27296ae28a766ebdd83372597479e25473.tar.gz
Add test for the recent magic_quotes_gpc regression.
Diffstat (limited to 'tests')
-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: \\\"