Hi, does everyone has any experience on using ZF with any of the
interactive console?
I tested some of the most populars:
- plain "php -a"
- phpsh, a Python iplementation open sourced by Facebook: http://www.phpsh.org/
- PHP-Shell, my favourite, which is the only one capable of handling
fatal errors - indispensable for debugging: http://pear.php.net/package/PHP_Shell/
Unfortunately, they all seems to fail when it comes to autoloading...
In particolar the standard PHP interactive mode is fully documented as
not compatible with autoload: http://www.php.net/manual/en/language.oop5.autoload.php
Does anybody knows of a valid alternative, or a workaround to make one
of these work seamlessy with ZF applications?
Also, if you start testing it, please notice that usage of the
__FILE__ magic constant will break your application: while in
interactive console it points to the executable position (probably usr/
local/bin or something similar) and not your executed php script.
Jules Piccotti