php-src/ext/standard/tests/strings/add-and-stripcslashes.phpt
Steph Fox 87fac43ac0 - killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
2008-05-27 10:50:48 +00:00

26 lines
610 B
PHP

--TEST--
addcslashes() and stripcslashes() function
--FILE--
<?php
echo addcslashes(b"", b"")."\n";
echo addcslashes(b"", b"burp")."\n";
echo addcslashes(b"kaboemkara!", b"")."\n";
echo addcslashes(b"foobarbaz", b'bar')."\n";
echo addcslashes(b'foo[ ]', b'A..z')."\n";
echo @addcslashes(b"zoo['.']", b'z..A')."\n";
echo addcslashes(b'abcdefghijklmnopqrstuvwxyz', b"a\145..\160z")."\n";
echo "\n\r" == stripcslashes(b'\n\r'),"\n";
echo stripcslashes(b'\065\x64')."\n";
echo stripcslashes(b'')."\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