Bug #76276
closedFluid incorrectly detects variable names beginning with a digit as number
0%
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.
Updated by Claus Due over 8 years ago
- Status changed from New to Under Review
Updated by Claus Due about 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.
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.