1--TEST-- 2addslashes() and stripslashes() functions, normal and sybase-style 3--FILE-- 4<?php 5 6$input = ''; 7for($i=0; $i<512; $i++) { 8 $input .= chr($i%256); 9} 10 11echo "Normal: "; 12ini_set('magic_quotes_sybase', 0); 13if($input === stripslashes(addslashes($input))) { 14 echo "OK\n"; 15} else { 16 echo "FAILED\n"; 17} 18 19echo "Sybase: "; 20ini_set('magic_quotes_sybase', 1); 21if($input === stripslashes(addslashes($input))) { 22 echo "OK\n"; 23} else { 24 echo "FAILED\n"; 25} 26 27?> 28--EXPECT-- 29Normal: OK 30Sybase: OK 31