mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
21 lines
269 B
PHP
21 lines
269 B
PHP
--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
|