Re: FW: Help with PEAR_Command_Install and PEAR_Command

From: Date: Mon, 07 Apr 2008 20:45:13 +0000
Subject: Re: FW: Help with PEAR_Command_Install and PEAR_Command
References: 1  Groups: php.pear.core 
Request: Send a blank email to pear-core+get-7458@lists.php.net to get a copy of this message
> Hi, > > This isn't a bug in PEAR, he was trying to extract code and use it > directly, but didn't follow the API precisely. -1. I'm not so sure about that, actually. Could you please point me to, precisely, where it states that the parameter passed into PEAR_Command_Install::doUninstall expects that the parameters passed to it are _package_names_ only? In addition, if some function returns a PEAR_Error object, but doesn't check for it as a return type in a typeless language, would that not be a bug? It's convenient to point the blame to users of a system that has little or no documentation -- however, all it does it discourage the use of the system. If "following the API precisely" involves spending 10s of hours pouring through the intricacies of the PEAR Installer framework just to find out how to implement commands that should be routine (e.g., I would expect programmatically interfacing with PEAR through the PEAR_Command_* API to be something of that nature), an endeavor which I've sadly had to undertake just to use PEAR, then you're going to discourage much of your user base. Frameworks should _abstract_ functionality, not require a user to pour over framework code to learn how to use it. --Chris > > Thanks, > Greg

« previous php.pear.core (#7458) next »