List:Commits« Previous MessageNext Message »
From:uwendel Date:March 28 2007 2:35pm
Subject:PHP mysqlnd svn commit: r293 - trunk/ext/mysqli/tests
View as plain text  
Author: uwendel
Date: 2007-03-28 16:35:39 +0200 (Wed, 28 Mar 2007)
New Revision: 293

Modified:
   trunk/ext/mysqli/tests/016.phpt
Log:
"Fixed" old test from the php.net CVS repro


Modified: trunk/ext/mysqli/tests/016.phpt
===================================================================
--- trunk/ext/mysqli/tests/016.phpt	2007-03-28 14:15:45 UTC (rev 292)
+++ trunk/ext/mysqli/tests/016.phpt	2007-03-28 14:35:39 UTC (rev 293)
@@ -9,11 +9,12 @@
 	/*** test mysqli_connect 127.0.0.1 ***/
 	$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
 
-	mysqli_select_db($link, $db);
+	if (!mysqli_query($link, "SET @dummy='foobar'"))
+		printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-	mysqli_query($link, "SET @dummy='foobar'");
-
-	$stmt = mysqli_prepare($link, "SELECT @dummy");
+	if (!$stmt = mysqli_prepare($link, "SELECT @dummy"))
+		printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
+		
 	mysqli_bind_result($stmt, $dummy);
 	mysqli_execute($stmt);
 	mysqli_fetch($stmt);
@@ -22,6 +23,11 @@
 
 	mysqli_stmt_close($stmt);
 	mysqli_close($link);
+	print "done!";
 ?>
 --EXPECTF--
-%s(6) "foobar"
+string(6) "foobar"
+done!
+--UEXPECTF--
+unicode(6) "foobar"
+done!

Thread
PHP mysqlnd svn commit: r293 - trunk/ext/mysqli/testsuwendel28 Mar