# make derik happy

This commit is contained in:
Moshe Doron 2003-03-31 19:01:43 +00:00
parent dc8daad70d
commit 64bd1cdbd6

View File

@ -0,0 +1,24 @@
--TEST--
Bug #22904 (magic mode failed for cybase with '\0')
--FILE--
<?php
ini_set("magic_quotes_sybase","on");
test();
ini_set("magic_quotes_sybase","off");
test();
function test(){
$buf = 'g\g"\0g'."'";
$slashed = addslashes($buf);
echo "$buf\n";
echo "$slashed\n";
echo stripslashes($slashed."\n");
}
?>
--EXPECT--
g\g"\0g'
g\\g"\\0g''
g\g"\0g'
g\g"\0g'
g\\g\"\\0g\'
g\g"\0g'