mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
27 lines
594 B
PHP
27 lines
594 B
PHP
--TEST--
|
|
addcslashes() and stripcslashes() function
|
|
--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 stripcslashes('')."\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
|
|
|