From f013dbf156f1059905ade7f31919935aafb18b07 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 17 Jun 2009 10:33:26 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20librairie=20FirePHP=20?= =?UTF-8?q?=C3=A0=20la=20version=200.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/FirePHPCore/FirePHP.class.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/framework/FirePHPCore/FirePHP.class.php b/framework/FirePHPCore/FirePHP.class.php index 961e0e980..d8ae13f34 100644 --- a/framework/FirePHPCore/FirePHP.class.php +++ b/framework/FirePHPCore/FirePHP.class.php @@ -12,6 +12,7 @@ * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * + * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright notice, @@ -282,7 +283,7 @@ class FirePHP { * @return void */ public function setObjectFilter($Class, $Filter) { - $this->objectFilters[$Class] = $Filter; + $this->objectFilters[strtolower($Class)] = $Filter; } /** @@ -1030,6 +1031,7 @@ class FirePHP { array_push($this->objectStack, $Object); $return['__className'] = $class = get_class($Object); + $class_lower = strtolower($class); $reflectionClass = new ReflectionClass($class); $properties = array(); @@ -1057,9 +1059,9 @@ class FirePHP { $raw_name = "\0".'*'."\0".$raw_name; } - if(!(isset($this->objectFilters[$class]) - && is_array($this->objectFilters[$class]) - && in_array($raw_name,$this->objectFilters[$class]))) { + if(!(isset($this->objectFilters[$class_lower]) + && is_array($this->objectFilters[$class_lower]) + && in_array($raw_name,$this->objectFilters[$class_lower]))) { if(array_key_exists($raw_name,$members) && !$property->isStatic()) { @@ -1096,9 +1098,9 @@ class FirePHP { if(!isset($properties[$name])) { $name = 'undeclared:'.$name; - if(!(isset($this->objectFilters[$class]) - && is_array($this->objectFilters[$class]) - && in_array($raw_name,$this->objectFilters[$class]))) { + if(!(isset($this->objectFilters[$class_lower]) + && is_array($this->objectFilters[$class_lower]) + && in_array($raw_name,$this->objectFilters[$class_lower]))) { $return[$name] = $this->encodeObject($value, $ObjectDepth + 1, 1); } else {