Skip to content

Commit 7fe21ce

Browse files
committed
Merge commit '8b9719d' into PHP-5.6
* commit '8b9719d': We need to turn off any strict mode here for this warning to show up
2 parents d5ddd2d + 8b9719d commit 7fe21ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/mysqli/tests/066.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ require_once('skipifconnectfailure.inc');
1212
/*** test mysqli_connect 127.0.0.1 ***/
1313
$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
1414

15+
if (!mysqli_query($mysql, "SET sql_mode=''"))
16+
printf("[002] Cannot set SQL-Mode, [%d] %s\n", mysqli_errno($mysql), mysqli_error($mysql));
17+
1518
$mysql->query("DROP TABLE IF EXISTS test_warnings");
1619

1720
$mysql->query("CREATE TABLE test_warnings (a int not null) ENGINE=myisam");

0 commit comments

Comments
 (0)