Annotation of embedaddon/php/ext/standard/tests/strings/add-and-stripcslashes.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: addcslashes() and stripcslashes() function
3: --FILE--
4: <?php
5: echo addcslashes("", "")."\n";
6: echo addcslashes("", "burp")."\n";
7: echo addcslashes("kaboemkara!", "")."\n";
8: echo addcslashes("foobarbaz", 'bar')."\n";
9: echo addcslashes('foo[ ]', 'A..z')."\n";
10: echo @addcslashes("zoo['.']", 'z..A')."\n";
11: echo addcslashes('abcdefghijklmnopqrstuvwxyz', "a\145..\160z")."\n";
12: echo "\n\r" == stripcslashes('\n\r'),"\n";
13: echo stripcslashes('\065\x64')."\n";
14: echo stripcslashes('')."\n";
15: ?>
16: --EXPECT--
17:
18:
19: kaboemkara!
20: foo\b\a\r\b\az
21: \f\o\o\[ \]
22: \zoo['\.']
23: \abcd\e\f\g\h\i\j\k\l\m\n\o\pqrstuvwxy\z
24: 1
25: 5d
26:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>