From: guth at fiifo dot u-psud dot fr
Operating system: Linux (mandrake 10)
PHP version: 5.0.1
PHP Bug Type: Zend Engine 2 problem
Bug description: Problem with var_dump()
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 bug report at http://bugs.php.net/?id=30162&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30162&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30162&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30162&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30162&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30162&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30162&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30162&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30162&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30162&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30162&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30162&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30162&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30162&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30162&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30162&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30162&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30162&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30162&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30162&r=mysqlcfg