Arbit - project tracking

Dwoo

#44: Array indices containing "-" don't work

Issue revisions

  • closed by Stephan Wentz at 2009-O-01 12:27
Type bug bug
State closed closed
Priority normal normal
Resolution fixed fixed
Assigned to Jordi Boggiano
Scheduled for 1.1.1
Affected versions
Affected components Core
Last change Thursday 1 October 2009 12:27:29 UTC by Stephan Wentz

Tryed to access an array through it's index, the array didn't find the index although it's there.

Examples (out of thhe head)

working:

$dwoo->assign('myArray', array('abc' => 123, 'def' => 456)); $dwoo->assign('myIndex', 'abc');

{$myArray[$myIndex]} => 123

not working:

$dwoo->assign('myArray', array('abc-0' => 123, 'def-0' => 456)); $dwoo->assign('myIndex', 'abc-0');

{$myArray[$myIndex]} => null

  • Jordi Boggiano at Monday 12 October 2009 19:45:30 UTC

    Applied in changeset r286.