#009286: Parse error in compiled template on accessing properties on an object in an array

Description:

"Parse error: syntax error, unexpected T_OBJECT_OPERATOR" is thrown in line 10 of compiled code, when I try to access a public object property on an object in a template

Template:
{use $array}
{$array['key']->property}

Compiled template:
<?php
Generated PHP file from template code.
If you modify this file your changes will be lost when it is regenerated.
$_ezcTemplate_output = "";
if ( !isset($this->send->array))
{ $this->send->array = NULL;
}

$_ezcTemplate_output .= "";
$_ezcTemplate_output .= htmlspecialchars(($this->send->array["key"]) -> property);
$_ezcTemplate_output .= "\n";
return $_ezcTemplate_output;
?>


Environment:

ezc trunk revision: 3866


Steps to Reproduce:

Execute the template


- Attachments

No attachments for this issue.


- Comments

Fixed in trunk rev. 3837.

#250044 by Raymond Bosman on October 30th, 2006 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Template
Affects 1.1beta1 - Template 1.1beta1
Fix Versions 2006.2beta2 - eZ components 2006.2beta2
1.1beta2 - Template 1.1beta2
Reporter Kore Nordmann
Responsible Raymond Bosman
Status 0 Closed
Resolution Fixed
Created October 28th, 2006
Updated October 30th, 2006
Resolved October 30th, 2006
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels