php-src/ext/standard/tests/strings/bug22904.phpt

31 lines
428 B
Plaintext
Raw Normal View History

2003-03-31 19:01:43 +00:00
--TEST--
Bug #22904 (magic mode failed for cybase with '\0')
--FILE--
2003-04-01 12:53:44 +00:00
not active yet
2003-04-01 12:54:35 +00:00
<?php
2003-04-01 12:53:44 +00:00
/*
2003-03-31 19:01:43 +00:00
ini_set("magic_quotes_sybase","on");
test();
ini_set("magic_quotes_sybase","off");
test();
2003-04-01 12:53:44 +00:00
*/
2003-03-31 19:01:43 +00:00
function test(){
$buf = 'g\g"\0g'."'";
$slashed = addslashes($buf);
echo "$buf\n";
echo "$slashed\n";
echo stripslashes($slashed."\n");
2003-04-01 12:53:44 +00:00
/*
2003-03-31 19:01:43 +00:00
g\g"\0g'
g\\g"\\0g''
g\g"\0g'
g\g"\0g'
g\\g\"\\0g\'
g\g"\0g'
2003-04-01 12:53:44 +00:00
*/
}
?>
--EXPECT--
2003-04-01 12:54:35 +00:00
not active yet