List:Commits« Previous MessageNext Message »
From:uwendel Date:March 28 2007 3:19pm
Subject:PHP mysqlnd svn commit: r294 - trunk/ext/mysqli/tests
View as plain text  
Author: uwendel
Date: 2007-03-28 17:19:53 +0200 (Wed, 28 Mar 2007)
New Revision: 294

Modified:
   trunk/ext/mysqli/tests/017.phpt
Log:
"Fixing" an old php.net CVS repro test


Modified: trunk/ext/mysqli/tests/017.phpt
===================================================================
--- trunk/ext/mysqli/tests/017.phpt	2007-03-28 14:35:39 UTC (rev 293)
+++ trunk/ext/mysqli/tests/017.phpt	2007-03-28 15:19:53 UTC (rev 294)
@@ -10,9 +10,9 @@
 	/*** test mysqli_connect 127.0.0.1 ***/
 	$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
 
-	mysqli_select_db($link, $db);
+	if (!$stmt = mysqli_prepare($link, "SELECT md5('bar'), database(), 'foo'"))
+		printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
 
-	$stmt = mysqli_prepare($link, "SELECT md5('bar'), database(), 'foo'");
 	mysqli_bind_result($stmt, $c0, $c1, $c2); 
 	mysqli_execute($stmt);
 
@@ -26,13 +26,25 @@
 
 	var_dump($test);
 	mysqli_close($link);
+	print "done!";
 ?>
 --EXPECTF--
 array(3) {
   [0]=>
-  %s(32) "37b51d194a7513e45b56f6524f2d51f2"
+  string(32) "37b51d194a7513e45b56f6524f2d51f2"
   [1]=>
-  %s(%d) "%s"
+  string(%d) "%s"
   [2]=>
-  %s(3) "foo"
+  string(3) "foo"
 }
+done!
+--UEXPECTF--
+array(3) {
+  [0]=>
+  string(32) "37b51d194a7513e45b56f6524f2d51f2"
+  [1]=>
+  unicode(%d) "%s"
+  [2]=>
+  unicode(3) "foo"
+}
+done!

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