PHP :: Bug #30162 :: Problem with var_dump()
| Bug #30162 | Problem with var_dump() | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-09-20 09:34 UTC | Modified: | 2005-05-04 10:51 UTC |
|
||||||
| From: | guth at fiifo dot u-psud dot fr | Assigned: | andi (profile) | |||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||
| PHP Version: | 5CVS-2005-03-07 | OS: | * | |||||||
| Private report: | No | CVE-ID: | None | |||||||
[2004-09-20 09:34 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-03-09 11:33 UTC] derick@php.net