#76: cannot use variable as array index
Issue revisions
- new by crypta at 2010-J-13 7:56
- closed by Jordi Boggiano at 2010-J-13 8:43
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | Nobody |
| Scheduled for | 1.2.0 |
| Affected versions | 1.1.1 |
| Affected components | Core |
| Last change | Tuesday 13 July 2010 08:43:33 UTC by Jordi Boggiano |
Short description
In some multidimensional arrays, vars as index with php syntax don't work
Environment
LAMP, debian lenny
Steps to reproduce
{foreach $dataset.dataitem.ok id} {var_dump($dataset['dataitem']['itemname'][$id])}
with an integer e.g. 6 instead of $id, everything's fine.
Expected behavior
getting the array data
Actual behavior
NULL
Jordi Boggiano at Tuesday 13 July 2010 08:43:33 UTC
Confirmed as fixed in trunk