|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-06 16:23 UTC] 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)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 26 17:00:01 2025 UTC |
Running the following code: <?php trigger_error("Triggered", E_RECOVERABLE_ERROR); ?> results in: Warning: Invalid error type specified in C:\dump\trigger.php on line 2 so E_RECOVERABLE_ERROR is not defined in this version? PHP 5.2.0, build date: Nov 2 2006 11:50:55