php-src/ext/standard/tests/strings/add-and-stripslashes.phpt

20 lines
293 B
Plaintext
Raw Normal View History

--TEST--
addslashes() and stripslashes() functions, normal and sybase-style
--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