]> granicus.if.org Git - php/commitdiff
Added test for magic_quotes_gpc
authorStefan Esser <sesser@php.net>
Thu, 11 Dec 2008 13:05:53 +0000 (13:05 +0000)
committerStefan Esser <sesser@php.net>
Thu, 11 Dec 2008 13:05:53 +0000 (13:05 +0000)
tests/security/magic_quotes_gpc.phpt [new file with mode: 0644]

diff --git a/tests/security/magic_quotes_gpc.phpt b/tests/security/magic_quotes_gpc.phpt
new file mode 100644 (file)
index 0000000..eb5b842
--- /dev/null
@@ -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