List:Commits« Previous MessageNext Message »
From:uwendel Date:June 21 2007 9:14am
Subject:PHP mysqlnd svn commit: r421 - trunk/tests/ext/mysqli
View as plain text  
Author: uwendel
Date: 2007-06-21 11:14:35 +0200 (Thu, 21 Jun 2007)
New Revision: 421

Modified:
   trunk/tests/ext/mysqli/mysqli_stmt_bind_param.phpt
Log:
Agreed with Andrey to ignore the slightly different error messages of libmysql and
mysqlnd. The mysqlnd message is a bit more precise/informative than the libmysql one.


Modified: trunk/tests/ext/mysqli/mysqli_stmt_bind_param.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_stmt_bind_param.phpt	2007-06-21 09:11:05 UTC (rev 420)
+++ trunk/tests/ext/mysqli/mysqli_stmt_bind_param.phpt	2007-06-21 09:14:35 UTC (rev 421)
@@ -37,7 +37,11 @@
     $id = null;
     $label = null;
     
-    if (!false === ($tmp = mysqli_stmt_bind_param($stmt, "", $id, $label)))
+    /* 
+        libmysql gives a less descriptive error message but mysqlnd, 
+        we did not unify the error messages but ignore this slight difference silently
+    */
+    if (!false === ($tmp = @mysqli_stmt_bind_param($stmt, "", $id, $label)))
         printf("[003a] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);      
 
     
     /* TODO: somehwhat undocumented syntax! */
@@ -304,8 +308,6 @@
 
 Warning: mysqli_stmt_bind_param(): Number of elements in type definition string doesn't
match number of bind variables in %s on line %d
 
-Warning: mysqli_stmt_bind_param(): Number of elements in type definition string doesn't
match number of bind variables in %s on line %d
-
 Warning: mysqli_stmt_bind_param(): Number of variables doesn't match number of parameters
in prepared statement in %s on line %d
 
 Warning: mysqli_stmt_bind_param(): Number of elements in type definition string doesn't
match number of bind variables in %s on line %d

Thread
PHP mysqlnd svn commit: r421 - trunk/tests/ext/mysqliuwendel21 Jun