#30162 [Ver->Asn]: Problem with var_dump()
| From: | derick@php.net | Date: | Mon, 07 Mar 2005 22:52:42 +0000 |
| Subject: | #30162 [Ver->Asn]: Problem with var_dump() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75087@lists.php.net to get a copy of this message | ||
ID: 30162
Updated by: derick@php.net
Reported By: guth at fiifo dot u-psud dot fr
-Status: Verified
+Status: Assigned
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5CVS-2005-03-07
-Assigned To:
+Assigned To: derick
New Comment:
THink that I broke this...
Previous Comments:
------------------------------------------------------------------------
[2004-09-20 09:34:53] guth at fiifo dot u-psud dot fr
Description:
------------
This bug is linked to bug #30161.
var_dump() should produce an object.
Reproduce code:
---------------
<?php
class FIIFO {
public function __construct() {
throw new Exception;
}
}
class hariCow extends FIIFO {
public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
}
public function __toString() {
return "Rusticus in asino sedet.";
}
}
$db = new hariCow;
var_dump($db);
?>
Expected result:
----------------
Something like 'Object ...'
Actual result:
--------------
UNKNOWN:0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30162&edit=1