Re: Re: [PEPr] +1 for PHP::Shell
| From: | Jan Kneschke | Date: | Mon, 29 May 2006 11:33:14 +0000 |
| Subject: | Re: Re: [PEPr] +1 for PHP::Shell | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-42663@lists.php.net to get a copy of this message | ||
On Tue, May 23, 2006 at 08:46:53PM +0200, Bertrand Mansion wrote:
> Sebastian Bergmann wrote:
>
> >Bertrand Mansion wrote:
> >> You must remove the __autoload() stuff. If your file is loaded first,
> >> it will take the namespace.
> >
> > PHP_Shell is not a "normal" PEAR package and the __autoload() usage is
> > essential for its ease of use.
>
> I don't see in what extent it is different to other PEAR packages. But I can
> easily imagine this stuff being used to launch an interactive debugging session
> in the middle of your application through an "ajax" bridge and interface (see
> http://tryruby.hobix.com for an ajax interface example with
> IRB). In this case,
> __autoload() might break because of other dependencies. If this kind of things
> can't be done and will never be done and is not meant to be done, ever, then
> feel free to keep __autoload(). Otherwise, it might be a good idea to remove
> this not so useful part of code.
I just uploaded 0.2.7 of the shell which fixes most of the complaints
and adds some new stuff:
- The autoload() is moved out of the Shell-class into the
base-application. autoload() is not loaded by default, but can be
enabled by ':set al' or ':set autoload' on the shell.
- The colour-schemes can be selected with ':set bg=light' as in vim.
- ? <string> works now on
* ? $obj->method() [in 0.2.6 only on ? class::method()]
* ? php_func() [like fopen(), in 0.2.6 only user_func()]
See:
- http://jan.kneschke.de/projects/php-shell/
- http://jan.kneschke.de/projects/php-shell/php-shell-cmd.php.html
- http://jan.kneschke.de/projects/php-shell/PHP_Shell.php.html
The package size increates from 16kb to 80kb as a generated
PHP_ShellPrototypes class has been added. It contains the all the
prototypes from the PHP-5.1.4 source tree.
I'll spin another mail about the PHP_ShellPrototypes class.
Jan
--
Jan Kneschke http://jan.kneschke.de/
Perhaps you want to say 'thank you, jan': http://jk.123.org/wishlist/