List:Commits« Previous MessageNext Message »
From:uwendel Date:June 26 2007 1:22pm
Subject:PHP mysqlnd svn commit: r501 - trunk/tests/ext/mysqli
View as plain text  
Author: uwendel
Date: 2007-06-26 15:22:48 +0200 (Tue, 26 Jun 2007)
New Revision: 501

Modified:
   trunk/tests/ext/mysqli/mysqli_fetch_object_no_constructor.phpt
Log:
Added UEXPECTF. Error message seems wrong in unicode mode.


Modified: trunk/tests/ext/mysqli/mysqli_fetch_object_no_constructor.phpt
===================================================================
--- trunk/tests/ext/mysqli/mysqli_fetch_object_no_constructor.phpt	2007-06-26 13:20:09 UTC
(rev 500)
+++ trunk/tests/ext/mysqli/mysqli_fetch_object_no_constructor.phpt	2007-06-26 13:22:48 UTC
(rev 501)
@@ -56,4 +56,19 @@
 
 Fatal error with PHP (but no exception!):
 
+Fatal error: Call to undefined method
mysqli_fetch_object_test::mysqli_fetch_object_test() in %s on line %d
+--UEXPECTF--
+No exception with PHP:
+object(mysqli_fetch_object_test)#%d (%d) {
+  [%s"a"]=>
+  NULL
+  [%s"b"]=>
+  NULL
+}
+
+Exception with mysqli. Note that at all other places we throws errors but no exceptions
unless the error mode has been changed:
+Exception: Class mysqli_fetch_object_test does not have a constructor hence you cannot
use ctor_params
+
+Fatal error with PHP (but no exception!):
+
 Fatal error: Call to undefined method
mysqli_fetch_object_test::mysqli_fetch_object_test() in %s on line %d
\ No newline at end of file

Thread
PHP mysqlnd svn commit: r501 - trunk/tests/ext/mysqliuwendel26 Jun