#46317 [NEW]: Error handling in ArrayObject constructor
| From: | zoe dot slattery at googlemail dot com | Date: | Thu, 16 Oct 2008 16:01:06 +0000 |
| Subject: | #46317 [NEW]: Error handling in ArrayObject constructor | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-129757@lists.php.net to get a copy of this message | ||
From: zoe dot slattery at googlemail dot com
Operating system: Linux
PHP version: 5.3CVS-2008-10-16 (snap)
PHP Bug Type: SPL related
Bug description: Error handling in ArrayObject constructor
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 bug report at http://bugs.php.net/?id=46317&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46317&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46317&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46317&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=46317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46317&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46317&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46317&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46317&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46317&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46317&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46317&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46317&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46317&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46317&r=mysqlcfg