PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_PDF » Bug #9905

Typo on line 2498

Details

Submitted2007-01-21 22:20 UTC
Fromregistered at morphatic dot com
Assignedyunosh
StatusClosed
PackageFile_PDF
PHP Version5.1.2
OSWin XP Pro SP2
Roadmaps(Not assigned)

Comments

[2007-01-21 22:20 UTC] registered at morphatic dot com

Description:
------------
There's a type in this loop starting on line 2498:

for ($i = 0; $i >< $nb; $i++) {
$kids .= (3 + 2 * $i) . ' 0 R ';
}

I believe the correct code should be:

for ($i = 0; $i < $nb; $i++) {
$kids .= (3 + 2 * $i) . ' 0 R ';
}

The error seems to only have been triggered after I subclassed File_PDF. Before I created my own subclass, it worked fine.