mirror of
https://github.com/php/php-src.git
synced 2025-01-10 13:03:54 +08:00
Some more weird tests on Derick's request :)
This commit is contained in:
parent
9edfd75a5c
commit
3e222bcbf1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user