/hphp/test/zend/good/ext/standard/tests/strings/add-and-stripslashes.php
http://github.com/facebook/hiphop-php · PHP · 14 lines · 13 code · 1 blank · 0 comment · 3 complexity · 2dec5cc564c401de0804659f38904861 MD5 · raw file
- <?hh
- <<__EntryPoint>> function main(): void {
- $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";
- }
- }