summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/add-and-stripslashes.phpt
blob: 6f01176d4e717654454a45be0a6858469ea7fb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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