Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a1

Bug #5011 PDF generation warning on uksort
Submitted: 2005-08-05 08:46 UTC Modified: 2005-11-20 14:53 UTC
From: farell Assigned: cellog
Status: Closed Package: PhpDocumentor
PHP Version: 4.3.10 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-05 08:46 UTC] farell
Description: ------------ After completed the HTML generation of my package HTML_QuickForm_advmultiselect, i would generated a PDF format. I discovered a warning during generation procedure. I've investigated and probably found origin of bug. At line 229 of file PhpDocumentor-1.2.3\phpDocumentor\Converters\PDF\default\class.phpdocpdf.php uksort($this->indexContents[$letter],array($this,'mystrnatcasecmp')); the callback function does not exists. There is no method 'mystrnatcasecmp' on phpdocpdf class. This method exists, but is defined on file PhpDocumentor-1.2.3\phpDocumentor\Converters\PDF\default\PDFdefaultConverter.inc lines 779-782 So i suppose you should replace the callback array($this,'mystrnatcasecmp') by array($this->converter,'mystrnatcasecmp') Hope it will help and i'm not wrong ! After tests (on phpDocumentor 1.2.3 only) the warning has disappeared. As the class.phpdocpdf.php file is the same between 1.2.3 and 1.3.0RC3 the bug must exists too on this other version. regards Laurent Laville Expected result: ---------------- No warning Actual result: -------------- [...] Generating PDF file..... Warning: uksort(): Invalid comparison function. in e:\wamp\php4\pear\PhpDocumentor\phpDocumentor\Converters\PDF\default\class.phpdocpdf.php on line 229 done Writing binary file D:\pearix\www\pear\HTML_QuickForm_advmultiselect\docs\HTML/documentation.pdf [...]

Comments

 [2005-11-20 14:53 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.