Skip to content

Commit 3be1281

Browse files
committed
ext/mysqli tests "using password" optional in error messages
1 parent 5aaffc8 commit 3be1281

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ext/mysqli/tests/mysqli_connect_oo.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ require_once('skipifconnectfailure.inc');
148148
print "done!";
149149
?>
150150
--EXPECTF--
151-
Warning: mysqli::__construct(): (%s/%d): Access denied for user '%sunknown%s'@'%s' (using password: %s) in %s on line %d
151+
Warning: mysqli::__construct(): (%s/%d): Access denied for user '%sunknown%s'@'%s' %r(\(using password: \w+\) ){0,1}%rin %s on line %d
152152
mysqli object is not fully initialized
153153
mysqli object is not fully initialized
154154
... and now Exceptions
155-
Access denied for user '%s'@'%s' (using password: %s)
155+
Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
156156
done!

ext/mysqli/tests/mysqli_real_connect.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ mysqli.allow_local_infile=1
152152
require_once("clean_table.inc");
153153
?>
154154
--EXPECTF--
155-
Warning: mysqli_real_connect(): (%s/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
155+
Warning: mysqli_real_connect(): (%s/%d): Access denied for user '%s'@'%s' %r(\(using password: \w+\) ){0,1}%rin %s on line %d
156156
object(mysqli)#%d (%d) {
157157
["client_version"]=>
158158
int(%d)

ext/mysqli/tests/mysqli_real_connect_pconn.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,5 @@ mysqli.max_persistent=10
151151
require_once("clean_table.inc");
152152
?>
153153
--EXPECTF--
154-
Warning: mysqli_real_connect(): (%s/%d): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
154+
Warning: mysqli_real_connect(): (%s/%d): Access denied for user '%s'@'%s' %r(\(using password: \w+\) ){0,1}%rin %s on line %d
155155
done!

ext/mysqli/tests/mysqli_report.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,6 @@ Warning: mysqli_stmt_attr_set(): (%s/%d): Not implemented in %s on line %d
342342
mysqli_kill(): Argument #2 ($process_id) must be greater than 0
343343

344344
Warning: mysqli_stmt_prepare(): (%d/%d): You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near 'FOO' at line 1 in %s on line %d
345-
[013] Access denied for user '%s'@'%s' (using password: YES)
346-
[016] Access denied for user '%s'@'%s' (using password: YES)
345+
[013] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
346+
[016] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
347347
done!

0 commit comments

Comments
 (0)