#009293: Template calls exit() for custom template functions without parameters

Description:

Using a custom template function with an empty set of expected parameters causes a break of the script because of exit() in line 93 in Template/src/syntax_trees/ast/interfaces/parameterized_ast.php.

a) This should be at least an exception
b) Custom functions without parameters seem not to work properly in statements.


Environment:

PHP Version: 5.2


Steps to Reproduce:

Write a custom template function with or without:


$def->parameters = array();

Call the function from a template like this:


{!customFunction()}

Adding an unused parameter to the template function seems to be a workaround for the moment.


- Attachments

No attachments for this issue.


- Comments

Fixed in trunk rev. 3874.

#250065 by Raymond Bosman on October 31st, 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 31st, 2006
Resolved October 31st, 2006
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels