diff options
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) """ |
