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

Bug #4525 Update inline package generation example
Submitted: 2005-06-04 15:53 UTC
From: demianturner Assigned: cellog
Status: Closed Package: PEAR_PackageFileManager
PHP Version: 4.3.10 OS: Linux Fedora Core 3
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-04 15:53 UTC] demianturner
Description: ------------ If you add the following two lines in your example package generate script (PackageFileManager.php:121-170) it will at least be possible to generate a simple package file: $packagexml->setSummary('this is my package'); $packagexml->setDescription('this is my package description'); Also note that the object is called '$test' on lines 160-1 which causes an error. Additionally, I would recommend including a short and simple example package that could be guaranteed to work (to pass validation) on Chiara_Pear_Server, eg: class Foo { function testFunc1() { return true; } } class FooBar { function testFunc1() { return true; } } class FooFluux { function testFunc1() { return true; } } Expected result: ---------------- * // replace @PHP-BIN@ in this file with the path to php executable! pretty neat * $packagexml->addReplacement('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin'); * $packagexml->addReplacement('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin'); Actual result: -------------- * // replace @PHP-BIN@ in this file with the path to php executable! pretty neat * $test->addReplacement('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin'); * $test->addReplacement('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin');

Comments

 [2005-07-24 15:50 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.