#47637 [NEW]: notXPath() issues
| From: | philip@php.net | Date: | Thu, 12 Mar 2009 16:44:34 +0000 |
| Subject: | #47637 [NEW]: notXPath() issues | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1971@lists.php.net to get a copy of this message | ||
From: philip@php.net
Operating system: all
PHP version: Irrelevant
PHP Bug Type: Doc Build problem
Bug description: notXPath() issues
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 bug report at http://bugs.php.net/?id=47637&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47637&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47637&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47637&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47637&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47637&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47637&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47637&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47637&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47637&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47637&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47637&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47637&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47637&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47637&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47637&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47637&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47637&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47637&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47637&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47637&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47637&r=mysqlcfg