From: Rasmus Lerdorf Date: Wed, 30 Jul 2014 16:22:48 +0000 (-0400) Subject: We need to turn off any strict mode here for this warning to show up X-Git-Tag: php-5.4.32RC1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b9719d8b90c361fe56c3b6285676bc74fdf90c3;p=php We need to turn off any strict mode here for this warning to show up --- diff --git a/ext/mysqli/tests/066.phpt b/ext/mysqli/tests/066.phpt index 91dfce5073..a337e038c1 100644 --- a/ext/mysqli/tests/066.phpt +++ b/ext/mysqli/tests/066.phpt @@ -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");