ZF-6595: zf.sh not catch fatal error

Description

Following the quickstart, on page concerning sign process and Zend_Form, I made a mistake creating "zf create action guestbook" instead of "zf create action sign guestbook" so logicaly an action "guestbook" has been created in the index controller.

I tried:

zf delete action guestbook index

It was a test, no matter for me if it works or not, but i think this fatal error should be avoided and catch:

Fatal error: Call to a member function getValue() on a non-object in /usr/local/zend/share/ZendFramework/library/Zend/Tool/Framework/Client/Console/ArgumentParser.php on line 388

Comments

Is there any reason why this marked as TRIVIAL error is still in stable release? Reported over month ago, new release came out and this bug is still there.

Please do fix this: I love ZF_Tool but this makes it nigh on impossible to use.

Any updates on this? This issue also affects 1.9,6 when using the zf command line:

$zf delete controller Foo

results in the following error message and stack trace.

Fatal error: Call to a member function getValue() on a non-object in /usr/share/php/Zend/Tool/Framework/Client/Console/ArgumentParser.php on line 388

Call Stack: 0.0007 183608 1. {main}() /home/xxx/bin/zf.php:0 0.0007 183840 2. zf_main() /home/xxx/bin/zf.php:23 0.0071 1098072 3. zf_run() /home/xxx/bin/zf.php:36 0.0071 1098648 4. Zend_Tool_Framework_Client_Console::main() /home/xxx/bin/zf.php:214 0.0071 1100856 5. Zend_Tool_Framework_Client_Abstract->dispatch() /usr/share/php/Zend/Tool/Framework/Client/Console.php:96 0.4442 6188560 6. Zend_Tool_Framework_Client_Console->_preDispatch() /usr/share/php/Zend/Tool/Framework/Client/Abstract.php:213 0.4448 6269248 7. Zend_Tool_Framework_Client_Console_ArgumentParser->parse() /usr/share/php/Zend/Tool/Framework/Client/Console.php:178 0.4475 6270744 8. Zend_Tool_Framework_Client_Console_ArgumentParser->_parseProviderOptionsPart() /usr/share/php/Zend/Tool/Framework/Client/Console/ArgumentParser.php:198

Hope this helps.

Actually, had a look at the docs http://framework.zend.com/manual/en/…

Doesn't look like the delete feature is implemented just yet.. Guess we'll have to wait.

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.