Re: Reporting errors in PhD

From: Date: Fri, 08 Jan 2010 10:54:40 +0000
Subject: Re: Reporting errors in PhD
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969381258@lists.php.net to get a copy of this message
2010/1/8 Hannes Magnusson <hannes.magnusson@gmail.com>: > On Fri, Jan 8, 2010 at 10:55, Richard Quadling <rquadling@googlemail.com> wrote: >> Hi. >> >> Something that I would like to update in PhD is when an error is >> reported (say VERBOSE_MISSING_ATTRIBUTES), to be able to include the >> xml:ID of the nearest ancestor with an xml:ID. >> >> So, ... >> >> [VERBOSE_MISSING_ATTRIBUTES] Missing alt attribute for >> en/features/figures/gc-algorithm.png >> >> becomes >> >> VERBOSE_MISSING_ATTRIBUTES] Missing alt attribute for >> en/features/figures/gc-algorithm.png for features.gc.collecting-cycles >> >> Is there an easy way to do this that doesn't cost require massive >> amount of searching? > > You can get the current chunk ID with little effort I think. > IIRC that will even work when building bightml, as chunks are still > registered, just not rendered as such. Any idea how? > Speaking of errormessages, "VERBOSE_MISSING_ATTRIBUTES" doesn't really > have a great meaning. > We should map the constants to textual representation, so that error > message above becomes "Missing attributes: Missing alt attribute > for".. Those descriptions are in the errh() function in phpdotnet\phd\functions.php Is changing ... // PhD warnings VERBOSE_NOVERSION => 'VERBOSE_NOVERSION', VERBOSE_BROKEN_LINKS => 'VERBOSE_BROKEN_LINKS', VERBOSE_MISSING_ATTRIBUTES => 'VERBOSE_MISSING_ATTRIBUTES', to ... // PhD warnings VERBOSE_NOVERSION => 'No version information', VERBOSE_BROKEN_LINKS => 'Broken links', VERBOSE_MISSING_ATTRIBUTES => 'Missing attributes', enough for you? [10:52:53 - Broken links] No link found for unset [10:52:53 - Missing attributes] Missing alt attribute for en/features/figures/simple-array.png [10:52:53 - Broken links] No link found for xdebug_debug_zval [10:52:54 - Broken links] No link found for gc_enable [10:52:54 - Broken links] No link found for gc_disable [10:52:54 - Broken links] No link found for gc_collect_cycles [10:52:54 - Broken links] No link found for gc_collect_cycles [10:52:54 - Broken links] No link found for gc_disable [10:52:54 - Broken links] No link found for gc_collect_cycles > > -Hannes > -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.doc (#969381258) next »