• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zendframework / zf2 / 13430
100%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2015 01:51PM UTC
Jobs 1
Files 2171
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
13430

Pull #7429

travis-ci

taiar
Not treated condition on rendering console action

I was getting the following when using PhpRender() in some console actions:

```console
Fatal error: Call to a member function hasChildren() on boolean in C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\Mvc\View\Console\DefaultRenderingStrategy.php on line 55

Call Stack:
    0.0000     124912   1. {main}() C:\Users\taiar\Documents\NetBeansProjects\phila\public\index.php:0
    0.3810    7488888   2. Zend\Mvc\Application->run() C:\Users\taiar\Documents\NetBeansProjects\phila\public\index.php:17
    1.2061   13544048   3. Zend\Mvc\Application->completeRequest() C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php:327
    1.2061   13544096   4. Zend\EventManager\EventManager->trigger() C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php:352
    1.2061   13544168   5. Zend\EventManager\EventManager->triggerListeners() C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php:207
    1.2071   13545376   6. call_user_func:{C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php:468}() C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php:468
    1.2071   13545560   7. Zend\Mvc\View\Console\DefaultRenderingStrategy->render() C:\Users\taiar\Documents\NetBeansProjects\phila\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php:468
```

Then I found, by debugging that ```if (empty($result))``` doesn't catch the condition when ```$result``` was simply a ```true``` valeu (wich was happening in my case.

The proposed patch just make it work.

Thanks.
Pull Request #7429: Untreated condition on rendering console action

63870 of 78645 relevant lines covered (81.21%)

37.5 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
library/Zend/Db/Sql/Select.php
1
100.0
library/Zend/Filter/FilterPluginManager.php
1
100.0
library/Zend/Session/AbstractContainer.php
1
100.0
library/Zend/Session/Storage/AbstractSessionArrayStorage.php
1
100.0
library/Zend/View/Helper/Escaper/AbstractHelper.php
2
100.0
library/Zend/Db/Adapter/Driver/Pdo/Result.php
2
100.0
library/Zend/Filter/FilterChain.php
4
100.0
library/Zend/View/Model/ViewModel.php
5
100.0
library/Zend/Db/Sql/Insert.php
6
100.0
library/Zend/Filter/Word/AbstractSeparator.php
7
100.0
library/Zend/Db/Sql/Expression.php
Jobs
ID Job ID Ran Files Coverage
4 13430.4 07 Apr 2015 01:48PM UTC 0
81.21
Travis Job 13430.4
Source Files on build 13430
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #13430
  • Pull Request #7429
  • PR Base - master (#13380)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc