Debug filters out variable reference errors

Author Message

Kristof Coomans

Monday 04 September 2006 3:07:20 am

I discovered some code in lib/ezutils/classes/ezdebug.php function eZDebugErrorHandler (added on trunk in rev. rev. 12364):

if ( preg_match( "/variable(.*?)reference/", $errstr ) )
    return;

Is it good practice to silently discard these messages? I don't think so.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Clemens T

Monday 04 September 2006 6:00:40 am

Very true Kristof,

It's probably their way of saying...

Stop reporting all those reference errors :P

Greets,
Clemens

Kåre Køhler Høvik

Tuesday 05 September 2006 5:34:55 am

Hi

The development crew here at eZ use Xdebug, so we see these warnings/errors anyway.

However, I do agree we should show these warnings in the future, but it should be introduced in a major release, for example 3.9. If we fix this in a stable3.8 sub release, alot of people will get warnings they don't know where come from.

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 03:42:46
Script start
Timing: Jan 19 2025 03:42:46
Module start 'layout'
Timing: Jan 19 2025 03:42:46
Module start 'content'
Timing: Jan 19 2025 03:42:47
Module end 'content'
Timing: Jan 19 2025 03:42:47
Script end

Main resources:

Total runtime0.9593 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.2891152.6406
Module start 'layout' 0.00560.0023 741.929739.4766
Module start 'content' 0.00800.9502 781.4063572.7656
Module end 'content' 0.95820.0011 1,354.171912.1250
Script end 0.9593  1,366.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3333160.0002
Check MTime0.00140.1448160.0001
Mysql Total
Database connection0.00070.078010.0007
Mysqli_queries0.915295.4049590.0155
Looping result0.00050.0555570.0000
Template Total0.931597.120.4657
Template load0.00170.179920.0009
Template processing0.929796.914320.4649
Template load and register function0.00010.008410.0001
states
state_id_array0.00120.126910.0012
state_identifier_array0.00200.209520.0010
Override
Cache load0.00150.1513180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.048730.0002
Fetch class attribute name0.00140.144350.0003
XML
Image XML parsing0.00130.135030.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00140.1456210.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs