Project

General

Profile

Actions

Bug #76276

closed

Fluid incorrectly detects variable names beginning with a digit as number

Added by Christian Weiske over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2016-05-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When a variable begins with a digit - e.g. 404elementid - then fluid detects it as a number, not a string:

<v:variable.set name="test" value="{0: 404elementid}"/>
<f:debug>{test}</f:debug>

<f:debug>{404elementid}</f:debug>

The first output shows 404 instead of the original variable value.

The second f:debug shows the correct variable value.

Actions

Also available in: Atom PDF