ID: 46317 Updated by: [EMAIL PROTECTED] Reported By: zoe dot slattery at googlemail dot com -Status: Open +Status: Assigned Bug Type: SPL related Operating System: Linux PHP Version: 5.3CVS-2008-10-16 (snap) -Assigned To: +Assigned To: colder
Previous Comments: ------------------------------------------------------------------------ [2008-10-16 16:01:06] zoe dot slattery at googlemail dot com Description: ------------ Errors are in the ArrayObject constructor are handled differently between PHP53 and PHP6. I believe that the PHP6 behaviour is better. Reproduce code: --------------- The test case is here:http://www.pastebin.ca/1228409 Expected result: ---------------- The PHP53 result is in the --EXPECT-- section of the test case. Actual result: -------------- The actual result on PHP6 is: Bad iterator type: ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'Exception' given(6) Non-existent class: ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'nonExistentClassName' given(13) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46317&edit=1