List:Commits« Previous MessageNext Message »
From:uwendel Date:April 7 2008 12:30pm
Subject:PHP mysqlnd svn commit: r1397 - trunk/tests/ext/pdo_mysql
View as plain text  
Author: uwendel
Date: 2008-04-07 12:30:19 +0200 (Mon, 07 Apr 2008)
New Revision: 1397

Modified:
   trunk/tests/ext/pdo_mysql/pdo_mysql_pconnect.phpt
Log:
For whatever reason libmysql does not give a warning but mysqlnd bails out as it should
be. Suppressing the warning to make the test pass with both ?\195?\156DP drivers...


Modified: trunk/tests/ext/pdo_mysql/pdo_mysql_pconnect.phpt
===================================================================
--- trunk/tests/ext/pdo_mysql/pdo_mysql_pconnect.phpt	2008-04-07 10:14:32 UTC (rev 1396)
+++ trunk/tests/ext/pdo_mysql/pdo_mysql_pconnect.phpt	2008-04-07 10:30:19 UTC (rev 1397)
@@ -48,8 +48,8 @@
 		// Server needs some think-time sometimes
 		sleep(1);
 		if ('00000' == $db1->errorCode()) {
-			// looks like KILL has worked ? Or not... TODO: why no warning?!
-			$db1->exec("SET @pdo_persistent_connection=2");
+			// looks like KILL has worked ? Or not... TODO: why no warning with libmysql?!
+			@$db1->exec("SET @pdo_persistent_connection=2");
 			// but now I want to see some error...
 			if ('HY000' != $db1->errorCode())
 				printf("[004] Wrong error code %s\n", $db1->errorCode());

Thread
PHP mysqlnd svn commit: r1397 - trunk/tests/ext/pdo_mysqluwendel7 Apr 2008