mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
31 lines
428 B
PHP
31 lines
428 B
PHP
--TEST--
|
|
Bug #22904 (magic mode failed for cybase with '\0')
|
|
--FILE--
|
|
not active yet
|
|
<?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");
|
|
/*
|
|
g\g"\0g'
|
|
g\\g"\\0g''
|
|
g\g"\0g'
|
|
g\g"\0g'
|
|
g\\g\"\\0g\'
|
|
g\g"\0g'
|
|
*/
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
not active yet
|