mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
We need to turn off any strict mode here for this warning to show up
This commit is contained in:
parent
b3466f862f
commit
8b9719d8b9
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue