Issues

ZF-6118: Zend_Tool_Framework_Provider_Repository tries to access wrong provider name when following coding convention.

Issue Type: Bug Created: 2009-03-24T11:51:12.000+0000 Last Updated: 2009-04-24T11:10:18.000+0000 Status: Resolved Fix version(s): Reporter: Maik Kreutzfeldt (grayfellow) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments:

Description

The Problem:

Zend_Tool_Framework_Client_Abstract->getProviderSignature($name) seeks for "" where the array Zend_Tool_Framework_Client_Abstract->_providerSignatures has only the key "provider".

Testet Zend_Tool CLI from SVN incubator with PHP 5.3.

basically following the tutorial and coding convention:

<pre class="highlight">

class Cli_HelpProvider extends Zend_Tool_Framework_Provider_Abstract
{
    public function show() { echo 'Hello world!'; }
}

And called it with

./zf show help

Causing a:

Fatal error: Call to a member function getProvider() on a non-object in /incubator/library/Zend/Tool/Framework/Client/Abstract.php on line 186

However renaming the class to 'Cli_Help' did solve the problem and returned normally whereas renaming the class to Help.php does hide it as Provider.

Comments

Posted by Maik Kreutzfeldt (grayfellow) on 2009-03-24T12:02:59.000+0000

This bug was added with Revision 14460 on March 24th.

In revision 14391 from March 19th it is possible the following two combinations are valid:

<pre class="highlight">
class HelpProvider extends Zend_Tool_Framework_Provider_Abstract
{
}

and

<pre class="highlight">
class Help extends Zend_Tool_Framework_Provider_Abstract
{
}

Which must have caused the sudden bug with my application.

Posted by Ralph Schindler (ralph) on 2009-04-24T11:10:18.000+0000

Please check against the latest version in trunk. I believe this is fixed.

Also note, ZF is not PHP 5.3 ready.

Also, for development purposes: use this:


it will show you whats available in the manifest (As well as zf --help)

 

 

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts