diff options
author | Marcus Boerger <helly@php.net> | 2002-11-22 15:47:48 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-22 15:47:48 +0000 |
commit | e7d20a0422ab62247834c5c97be022600225d259 (patch) | |
tree | e243886e73af0e628ac22ca13dd3ee3c4febc254 /ext/dba/tests | |
parent | 81711ba621b0aa6268d63b28cd94f6eaee1f6ff3 (diff) | |
download | php-git-e7d20a0422ab62247834c5c97be022600225d259.tar.gz |
Make magic_quotes_runtime work bidirectional for dba
Diffstat (limited to 'ext/dba/tests')
-rw-r--r-- | ext/dba/tests/dba008.phpt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/dba/tests/dba008.phpt b/ext/dba/tests/dba008.phpt index 340131c30b..84a47ba083 100644 --- a/ext/dba/tests/dba008.phpt +++ b/ext/dba/tests/dba008.phpt @@ -10,11 +10,15 @@ DBA magic_quotes_runtime Test require_once('test.inc'); echo "database handler: $handler\n"; if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) { - dba_insert("key1", '"', $db_file); ini_set('magic_quotes_runtime', 0); + dba_insert("key1", '"', $db_file); var_dump(dba_fetch("key1", $db_file)); ini_set('magic_quotes_runtime', 1); var_dump(dba_fetch("key1", $db_file)); + dba_replace("key1", '\"', $db_file); + var_dump(dba_fetch("key1", $db_file)); + ini_set('magic_quotes_runtime', 0); + var_dump(dba_fetch("key1", $db_file)); dba_close($db_file); } else { echo "Error creating database\n"; @@ -24,3 +28,5 @@ DBA magic_quotes_runtime Test database handler: %s string(1) """ string(2) "\"" +string(2) "\"" +string(1) """ |