From 86dacf82040ed6edefb411d083dc815413d859be Mon Sep 17 00:00:00 2001 From: Marcus Puchalla Date: Thu, 16 Apr 2015 09:09:14 +0200 Subject: [PATCH] Header outut modification: - The dump of an object will now also print its class name in the header. - Array dumps will include the array size. - Resources will display their type (get_resource_type). --- dBug.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dBug.php b/dBug.php index 6302e91..439fe76 100755 --- a/dBug.php +++ b/dBug.php @@ -190,7 +190,7 @@ class dBug { $var_ser = serialize($var); array_push($this->arrHistory, $var_ser); - $this->makeTableHeader("array","array"); + $this->makeTableHeader("array","array (size: ".sizeof($var).")"); if(is_array($var)) { foreach($var as $key=>$value) { $this->makeTDHeader("array",$key); @@ -220,7 +220,7 @@ class dBug { function varIsObject($var) { $var_ser = serialize($var); array_push($this->arrHistory, $var_ser); - $this->makeTableHeader("object","object"); + $this->makeTableHeader("object","object .(".get_class($var).")"); if(is_object($var)) { $arrObjVars=get_object_vars($var); @@ -255,7 +255,7 @@ class dBug { //if variable is a resource type function varIsResource($var) { - $this->makeTableHeader("resourceC","resource",1); + $this->makeTableHeader("resourceC","resource (".get_resource_type($var).")",1); echo "\n\n"; switch(get_resource_type($var)) { case "fbsql result":