diff options
author | Stefan Esser <sesser@php.net> | 2008-12-11 13:05:53 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2008-12-11 13:05:53 +0000 |
commit | 1940a3aa919a2e7e4899b1585c616aac10541238 (patch) | |
tree | a03d26f8cb00b71bf2024a401c69973edbc8b8fa /tests | |
parent | 0c0bb70ba9734fc4d5fd623ea0ba52ef993161b4 (diff) | |
download | php-git-1940a3aa919a2e7e4899b1585c616aac10541238.tar.gz |
Added test for magic_quotes_gpc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/security/magic_quotes_gpc.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/security/magic_quotes_gpc.phpt b/tests/security/magic_quotes_gpc.phpt new file mode 100644 index 0000000000..eb5b84242a --- /dev/null +++ b/tests/security/magic_quotes_gpc.phpt @@ -0,0 +1,12 @@ +--TEST-- +Test if magic_quotes_gpc works as expected +--INI-- +magic_quotes_gpc=1 +--GET-- +a=abc'"%00123 +--FILE-- +<?php +echo $_GET['a'],"\n"; +?> +--EXPECT-- +abc\'\"\0123 |