PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/dba/tests/dba_db4_010.phpt ('DBA DB4 magic_quotes_runtime Test')

Script

1: <?php
2: $handler 
"db4";
3: require_once(
dirname(__FILE__) .'/test.inc');
4: echo 
"database handler: $handler\n";
5: if ((
$db_file=dba_open($db_file"n"$handler))!==FALSE) {
6:     
ini_set('magic_quotes_runtime'0);
7:     
dba_insert("key1"'"'$db_file);
8:     
var_dump(dba_fetch("key1"$db_file));
9:     
ini_set('magic_quotes_runtime'1);
10:     
var_dump(dba_fetch("key1"$db_file));
11:     
dba_replace("key1"'\"'$db_file);
12:     
var_dump(dba_fetch("key1"$db_file));
13:     
ini_set('magic_quotes_runtime'0);
14:     
var_dump(dba_fetch("key1"$db_file));
15:     
dba_close($db_file);
16: } else {
17:     echo 
"Error creating database\n";
18: }
19:
?>
20:

Expected

database handler: db4
string(1) """
string(2) "\""
string(2) "\""
string(1) """

Output

database handler: db4
string(1) """
string(1) """
string(2) "\""
string(2) "\""

Diff

003+ string(1) """
005- string(1) """

 

Generated at Thu, 25 Sep 2014 19:26:09 +0000 (6 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.