Skip to content

Commit 0ac9e8e

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: ext/mysqli tests "using password" optional in error messages
2 parents b683a7e + b6b4a62 commit 0ac9e8e

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
@@ -151,7 +151,7 @@ mysqli.allow_local_infile=1
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
object(mysqli)#%d (%d) {
156156
["client_info"]=>
157157
string(%d) "%s"

ext/mysqli/tests/mysqli_real_connect_pconn.phpt

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

ext/mysqli/tests/mysqli_report.phpt

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

339339
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
340-
[013] Access denied for user '%s'@'%s' (using password: YES)
341-
[016] Access denied for user '%s'@'%s' (using password: YES)
340+
[013] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
341+
[016] Access denied for user '%s'@'%s'%r( \(using password: \w+\)){0,1}%r
342342
done!

0 commit comments

Comments
 (0)