Project

General

Profile

Actions

Bug #100880

closed

block comments are not working as described in documentation in constants for root page

Added by Wolfgang Kleinbach 12 months ago. Updated 12 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2023-05-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

While updating the server from PHP 7.4.x to 8.2.3 I got an error message, when selecting "Template" on a root page in TYPO3 11.5.x and an error when saving constants from the constant editor in TYPO3 12.4.x.

The issue was caused by a comment in the constants part of the root template:

/*
This is a comment
This is the second line of a comment
*/

Corresponding to the documentation for TYPO3 11.5.x block comments this way should be allowed.
The closing "*/" at the beginning of a line caused the errors.
No issue with TYPO3 11.5.x using PHP 7.4.x so far.

Changing the comment in the following way, solves the issue:

/*
This is a comment
This is the second line of a comment */

Actions #1

Updated by Chris Müller 12 months ago

  • Status changed from New to Rejected

The TypoScript parser was rewritten, the syntax for multi-line comments is described in the docs for v12.4:
https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/Configuration/TypoScript/Syntax/Comments/Index.html#comments

As this is not a bug but a wanted behaviour in v12, I am closing this issue for now. If you have another opinion, please feel free to comment.

Actions #2

Updated by Wolfgang Kleinbach 12 months ago

In the docs, you are relating to, it's stated that "... */ no longer needs to be on a single line".
To my experience it MUST NOT be on a single line.
BTW: With TYPO3 11.5.x the same issue occurs using PHP 8.2.3. So the TypoScript parser seems to be changed with version 11.5.x already. The docs for 11.5.x should therefore be changed accordingly.

Actions

Also available in: Atom PDF