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

Request #13572 move intelligence out of pearsize into own class
Submitted: 2008-04-03 10:31 UTC
From: cweiske Assigned: kguest
Status: Closed Package: PEAR_Size (version 0.1.1)
PHP Version: 5.2.5 OS:
Roadmaps: 0.1.2    
Subscription  


 [2008-04-03 10:31 UTC] cweiske (Christian Weiske)
Description: ------------ The intelligence of handling command line input and all should not be in $bin/pearsize but an own class like PEAR_Size_Cli.php. pearsize should only call: <?php require_once 'PEAR/Size/Cli.php'; $sizer = new PEAR_Size_Cli(); $sizer->run(); ?> That way one can re-use all the code, e.g. in the pear command. Also see the HTML_Template_PHPLIB tool: http://cvs.php.net/viewvc.cgi/pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Tool.php?view=markup http://cvs.php.net/viewvc.cgi/pear/HTML_Template_PHPLIB/bin/html_template_phplibtool?view=markup

Comments

 [2008-04-03 10:33 UTC] cweiske (Christian Weiske)
Base for bug #13573.
 [2008-04-04 00:20 UTC] kguest (Ken Guest)
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.