File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
strings /
add-and-stripslashes.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:45 2012 UTC (12 years, 2 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--TEST--
addslashes() and stripslashes() functions
--FILE--
<?php
$input = '';
for($i=0; $i<512; $i++) {
$input .= chr($i%256);
}
echo "Normal: ";
if($input === stripslashes(addslashes($input))) {
echo "OK\n";
} else {
echo "FAILED\n";
}
?>
--EXPECT--
Normal: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>