php-src/ext/standard/tests/strings/add-and-stripslashes.phpt
Pierre Joye bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00

20 lines
293 B
PHP

--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