]> granicus.if.org Git - php/commitdiff
Fix newly introduced test for Windows
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 14 Aug 2020 12:34:24 +0000 (14:34 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 14 Aug 2020 12:36:32 +0000 (14:36 +0200)
The warning message is rather different there, but since that is
irrelevant for this test case, we just suppress the warning.

ext/mysqli/tests/mysqli_incomplete_initialization.phpt

index 19aa6914ab3c840378736512e2495a085207dc49..d6f752051fde6db4edfe4ae4a66769fce5c97f07 100644 (file)
@@ -8,13 +8,11 @@ require_once('skipif.inc');
 <?php
 
 $mysqli = new mysqli();
-$mysqli->__construct(null);
+@$mysqli->__construct(null);
 $mysqli->close();
 
 ?>
 --EXPECTF--
-Warning: mysqli::__construct(): (HY000/2002): No such file or directory in %s on line %d
-
 Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d
 Stack trace:
 #0 %s(%d): mysqli->close()