MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:uwendel Date:September 17 2007 1:24pm
Subject:PHP mysqlnd svn commit: r1052 - trunk/tests/ext/mysqli
View as plain text  
Author: uwendel
Date: 2007-09-17 15:24:08 +0200 (Mon, 17 Sep 2007)
New Revision: 1052

Modified:
   trunk/tests/ext/mysqli/mysqli_fetch_object.phpt
Log:
In my eyes the ext/mysqli API is poor and this
should not throw an exception, however, 
mysqlnd and libmysql behave the same way - let's test
it by default.


Modified: trunk/tests/ext/mysqli/mysqli_fetch_object.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_fetch_object.phpt	2007-09-17 12:22:14 UTC (rev 1051)
+++ trunk/tests/ext/mysqli/mysqli_fetch_object.phpt	2007-09-17 13:24:08 UTC (rev 1052)
@@ -96,9 +96,12 @@
 	I'm using the procedural interface, this should not throw an exception.
 	Also, I did not ask to get exceptions using the mysqli_options()
 	*/
-	if ($TEST_EXPERIMENTAL)
+	try {
 		if (false !== ($obj = mysqli_fetch_object($res, 'mysqli_fetch_object_construct', 'a')))
 			printf("[011] Should have failed\n");
+	} catch (Exception $e) {
+		printf("%s\n", $e->getMessage());
+	}
 
 	mysqli_free_result($res);
 
@@ -145,5 +148,6 @@
 
 Warning: mysqli_fetch_object(): Couldn't fetch mysqli_result in %s on line %d
 NULL
+Parameter ctor_params must be an array
 
 Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d
\ No newline at end of file

Thread
PHP mysqlnd svn commit: r1052 - trunk/tests/ext/mysqliuwendel17 Sep