com php-src: We need to turn off any strict mode here for this warning to show up: ext/mysqli/tests/066.phpt
| From: | Rasmus Lerdorf | Date: | Wed, 30 Jul 2014 16:22:48 +0000 |
| Subject: | com php-src: We need to turn off any strict mode here for this warning to show up: ext/mysqli/tests/066.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79675@lists.php.net to get a copy of this message | ||
Commit: 8b9719d8b90c361fe56c3b6285676bc74fdf90c3
Author: Rasmus Lerdorf <rasmus@php.net> Wed, 30 Jul 2014 12:22:48 -0400
Parents: b3466f862fcafde742515e7cdd1e170c03837af5
Branches: PHP-5.4 PHP-5.5 PHP-5..6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8b9719d8b90c361fe56c3b6285676bc74fdf90c3
Log:
We need to turn off any strict mode here for this warning to show up
Changed paths:
M ext/mysqli/tests/066.phpt
Diff:
diff --git a/ext/mysqli/tests/066.phpt b/ext/mysqli/tests/066.phpt
index 91dfce5..a337e03 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");