php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30162 Problem with var_dump()
Submitted: 2004-09-20 09:34 UTC Modified: 2005-05-04 10:51 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:0 of 1 (0.0%)
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 commitsRelated reports
 [2005-03-07 23:52 UTC] derick@php.net
THink that I broke this...
 [2005-03-09 11:33 UTC] derick@php.net
Nope, this has problably to do with exceptions - not my thing.
 [2005-05-04 10:51 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC