diff options
author | Scott MacVicar <scottmac@php.net> | 2008-12-09 01:47:57 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2008-12-09 01:47:57 +0000 |
commit | d8edbd27296ae28a766ebdd83372597479e25473 (patch) | |
tree | 269113cb06b06aa8283f479deac832c8729375e0 /tests | |
parent | a6841bf66b06705f025c49982f056a028ad88ddf (diff) | |
download | php-git-d8edbd27296ae28a766ebdd83372597479e25473.tar.gz |
Add test for the recent magic_quotes_gpc regression.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/bug46759.phpt | 21 |
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: \\\" |