mirror of
https://github.com/php/php-src.git
synced 2024-12-16 21:37:49 +08:00
- Fix tests (we are not interested what the old value was for the ini option)
This commit is contained in:
parent
b33ea59337
commit
3327653e19
@ -15,7 +15,7 @@ Test addslashes() function : usage variations - with magic_quotes_sybase directi
|
|||||||
echo "*** Testing addslashes() : with php directive magic_quotes_sybase set ON ***\n";
|
echo "*** Testing addslashes() : with php directive magic_quotes_sybase set ON ***\n";
|
||||||
|
|
||||||
// setting ON the php directive magic_quotes_sybase
|
// setting ON the php directive magic_quotes_sybase
|
||||||
var_dump( ini_set("magic_quotes_sybase", "1") );
|
ini_set("magic_quotes_sybase", "1");
|
||||||
|
|
||||||
// initialising a heredoc string
|
// initialising a heredoc string
|
||||||
$heredoc_string = <<<EOT
|
$heredoc_string = <<<EOT
|
||||||
@ -91,7 +91,6 @@ echo "Done\n";
|
|||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing addslashes() : with php directive magic_quotes_sybase set ON ***
|
*** Testing addslashes() : with php directive magic_quotes_sybase set ON ***
|
||||||
string(1) "0"
|
|
||||||
|
|
||||||
-- Iteration 1 --
|
-- Iteration 1 --
|
||||||
string(11) "Hello world"
|
string(11) "Hello world"
|
||||||
@ -195,4 +194,4 @@ This is line 2 of "heredoc" string"
|
|||||||
|
|
||||||
-- Iteration 34 --
|
-- Iteration 34 --
|
||||||
string(0) ""
|
string(0) ""
|
||||||
Done
|
Done
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user