Annotation of embedaddon/php/ext/standard/tests/strings/add-and-stripslashes.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
1.1.1.2 ! misho 2: addslashes() and stripslashes() functions
1.1 misho 3: --FILE--
4: <?php
5:
6: $input = '';
7: for($i=0; $i<512; $i++) {
8: $input .= chr($i%256);
9: }
10:
11: echo "Normal: ";
12: if($input === stripslashes(addslashes($input))) {
13: echo "OK\n";
14: } else {
15: echo "FAILED\n";
16: }
17:
18: ?>
19: --EXPECT--
20: Normal: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>