#40373 [Opn->Bgs]: calling "print()" on an ArrayObject fails silently.
| From: | tony2001@php.net | Date: | Tue, 06 Feb 2007 17:27:20 +0000 |
| Subject: | #40373 [Opn->Bgs]: calling "print()" on an ArrayObject fails silently. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108501@lists.php.net to get a copy of this message | ||
ID: 40373
Updated by: tony2001@php.net
Reported By: james at thundermonkey dot net
-Status: Open
+Status: Bogus
Bug Type: SPL related
Operating System: WinXP SP2
PHP Version: 5.2.0
New Comment:
Catchable fatal error: Object of class ArrayObject could not be
converted to string
Previous Comments:
------------------------------------------------------------------------
[2007-02-06 16:23:12] james at thundermonkey dot net
Description:
------------
When attempting to "print()" an ArrayObject (rather than "print_r()")
no ouput is returned, no errors are displayed and the script aborts
silently.
Reproduce code:
---------------
<?php
$x = new ArrayObject(array('a', 'b'));
print $x;
print "Reached this point!";
exit();
/* in php.ini: error_reporting = E_ALL | E_STRICT */
?>
Expected result:
----------------
*Some kind of error message saying that the ArrayObject couldn't be
converted to a string followed by:*
Reached this point!
Actual result:
--------------
(no output at all)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40373&edit=1