#47637 [Opn->Csd]: notXPath() issues

From: Date: Fri, 04 Sep 2009 15:10:43 +0000
Subject: #47637 [Opn->Csd]: notXPath() issues
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2726@lists.php.net to get a copy of this message
ID: 47637 Updated by: moacir@php.net Reported By: philip@php.net -Status: Open +Status: Closed Bug Type: Doc Build problem Operating System: all PHP Version: Irrelevant Previous Comments: ------------------------------------------------------------------------ [2009-09-04 15:09:04] svn@php.net Automatic comment from SVN on behalf of moacir Revision: http://svn.php.net/viewvc/?view=revision&revision=288052 Log: fixing bug #47637 ------------------------------------------------------------------------ [2009-03-12 16:44:33] philip@php.net Description: ------------ A few E_NOTICE errors result when using the PDF format, and this may reveal other issues. Debugging is as follows: Reproduce code: --------------- Debugging simply added this to the notXPath() method definition: if ($depth == 0) { var_dump(array('tag' => $tag, 'stack' => $this->STACK)); } The problematic line #88:: if (isset($tag[$this->STACK[--$depth]])) { Results: water:phpdoc philip$ phd --format pdf --theme phpbigpdf [03:15:32 - VERBOSE_INDEXING] Indexing... [03:15:52 - VERBOSE_INDEXING] Indexing done [03:15:52 - VERBOSE_FORMAT_RENDERING] Starting pdf rendering [03:15:52 - VERBOSE_THEME_RENDERING] Using the php theme (phpbigpdf) [03:15:52 - VERBOSE_RENDER_STYLE] Running full build array(2) { ["tag"]=> array(2) { [0]=> string(15) "format_root_set" ["set"]=> string(10) "format_set" } ["stack"]=> array(1) { [0]=> string(3) "set" } } [03:15:57 - E_NOTICE] /phd/include/PhDReader.class.php:88 Undefined offset: -1 array(2) { ["tag"]=> array(2) { [0]=> string(14) "format_setname" ["set"]=> bool(false) } ["stack"]=> array(2) { [0]=> string(3) "set" [1]=> string(5) "title" } } [03:15:57 - E_NOTICE] /phd/include/PhDReader.class.php:88 Undefined offset: -1 array(2) { ["tag"]=> array(2) { [0]=> string(15) "format_root_set" ["set"]=> string(10) "format_set" } ["stack"]=> array(22) { [0]=> string(3) "set" [1]=> string(4) "book" <snip> [03:17:23 - E_NOTICE] /phd/include/PhDReader.class.php:88 Undefined offset: -1 [03:17:23 - VERBOSE_TOC_WRITING] Resolving Internal Links... (PHP Manual) [03:17:25 - VERBOSE_TOC_WRITING] Writing Full PDF Manual (PHP Manual) [03:17:31 - VERBOSE_FORMAT_RENDERING] Finished rendering water:phpdoc philip$ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47637&edit=1

« previous php.doc.bugs (#2726) next »