Skip to content

Commit

Permalink
We need to turn off any strict mode here for this warning to show up
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Jul 30, 2014
1 parent b3466f8 commit 8b9719d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/mysqli/tests/066.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ require_once('skipifconnectfailure.inc');
/*** test mysqli_connect 127.0.0.1 ***/
$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);

if (!mysqli_query($mysql, "SET sql_mode=''"))
printf("[002] Cannot set SQL-Mode, [%d] %s\n", mysqli_errno($mysql), mysqli_error($mysql));

$mysql->query("DROP TABLE IF EXISTS test_warnings");

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

0 comments on commit 8b9719d

Please sign in to comment.