Some more weird tests on Derick's request :)

This commit is contained in:
Sander Roobol 2002-10-06 19:17:04 +00:00
parent 9edfd75a5c
commit 3e222bcbf1

View File

@ -4,17 +4,25 @@ addcslashes() and stripcslashes() function
--GET--
--FILE--
<?php
echo addcslashes("", "")."\n";
echo addcslashes("", "burp")."\n";
echo addcslashes("kaboemkara!", "")."\n";
echo addcslashes("foobarbaz", 'bar')."\n";
echo addcslashes('foo[ ]', 'A..z')."\n";
echo @addcslashes("zoo['.']", 'z..A')."\n";
echo addcslashes('abcdefghijklmnopqrstuvwxyz', "a\145..\160z")."\n";
echo "\n\r" == stripcslashes('\n\r'),"\n";
echo stripcslashes('\065\x64')."\n";
echo stripslashes('')."\n";
?>
--EXPECT--
kaboemkara!
foo\b\a\r\b\az
\f\o\o\[ \]
\zoo['\.']
\abcd\e\f\g\h\i\j\k\l\m\n\o\pqrstuvwxy\z
1
5d