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 #1

Updated by Claus Due about 8 years ago

  • Status changed from New to Under Review
Actions #2

Updated by Claus Due almost 8 years ago

  • Status changed from Under Review to Needs Feedback
  • TYPO3 Version changed from 7 to 8

Resolved in 8.4-dev, not possible to resolve in 7.6 without potentially breaking usages like passing `123m` as part of an array, like `arguments` for a call to `f:render`. Such use cases would begin seeing invalid and potentially PHP-warning-generating failures after such a change.

I would advise to not implement this on 7.6 but will leave the final decision open. Set to "Needs feedback" until that decision is made - is "Resolved" if you use TYPO3v8.

Actions #3

Updated by Alexander Opitz over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF