Arbit - project tracking

Dwoo

#62: isArray in Dwoo.php check for Traversable

Issue revisions

  • new by emanuel at 2010-M-16 9:51
  • closed by Jordi Boggiano at 2010-M-16 9:59
Type bug bug
State closed closed
Priority urgent urgent
Resolution duplicate duplicate
Assigned to Nobody
Scheduled for
Affected versions 1.1.1
Affected components Core
Last change Tuesday 16 March 2010 09:59:58 UTC by Jordi Boggiano

Short description

The check generated by template is using isArray function. I think that we should have a new function named isTraversable that will check if the value is instance of Traversable interface or change the isArray function to allow instances of Traversable.

Environment

ALL

Steps to reproduce

Use Zend_Paginator in a foreach loop.

Expected behavior

enumerate the paginator

Actual behavior

no output

  • Jordi Boggiano at Tuesday 16 March 2010 09:59:58 UTC

    This is a duplicate of bug 37 : http://bugs.dwoo.org/dwoo/bugs/issue/37/isArray-wrong-check

    It is fixed already in trunk for a while and will be released in 1.2.0.

    If you are in a rush, since I can not push the 1.2.0 right away, I would suggest you use trunk. You can restrict your svn:externals to the current revision of trunk as such:

    svn propset svn:externals "dwoo -r347 http://svn.dwoo.org/trunk" some/path

    That way you won't get new commits if you svn up, and do not risk any unexpected breakage. I hope that works for you.