#46317 [Opn->Asn]: Error handling in ArrayObject constructor
| From: | felipe@php.net | Date: | Thu, 16 Oct 2008 18:57:19 +0000 |
| Subject: | #46317 [Opn->Asn]: Error handling in ArrayObject constructor | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129762@lists.php.net to get a copy of this message | ||
ID: 46317
Updated by: felipe@php.net
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