summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_connect.phpt
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-08-04 09:51:26 +0000
committerAndrey Hristov <andrey@php.net>2011-08-04 09:51:26 +0000
commitc9e7716cfd137b7c9ec2980273b3bbd4bc743e1f (patch)
tree078196a1b05032c38ed91c487438f32f3a10dc10 /ext/mysqli/tests/mysqli_connect.phpt
parentd8f08192effdd786e00dfc4da8ee762b066382b6 (diff)
downloadphp-git-c9e7716cfd137b7c9ec2980273b3bbd4bc743e1f.tar.gz
Add mysqli_error_list() that returns an array with errors. Typically only
one and just one for libmysql. mysqlnd can return generate more than one error during its work and with mysqli_error() only the last error is being reported. In the array returned by mysqli_error_list() / $mysqli->error_list, all errors will be found. The list is reset when the next command is executed
Diffstat (limited to 'ext/mysqli/tests/mysqli_connect.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_connect.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/tests/mysqli_connect.phpt b/ext/mysqli/tests/mysqli_connect.phpt
index cf7c7bede8..e9d6ed543f 100644
--- a/ext/mysqli/tests/mysqli_connect.phpt
+++ b/ext/mysqli/tests/mysqli_connect.phpt
@@ -146,7 +146,7 @@ mysqli_connect()
print "done!";
?>
--EXPECTF--
-Warning: mysqli_connect(): (%d/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
+Warning: mysqli_connect(): (%s/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
array(1) {
[%u|b%"testing"]=>
%unicode|string%(21) "mysqli.default_socket"