Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Parse error ??? #40

Closed
7D opened this issue Mar 4, 2016 · 2 comments
Closed

PHP Parse error ??? #40

7D opened this issue Mar 4, 2016 · 2 comments

Comments

@7D
Copy link

7D commented Mar 4, 2016

Hi,

I'm running Typo3 6.2.19 on PHP 5.4.16 an got the following:

PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in //www/typo3conf/ext/realurl/Classes/Decoder/UrlDecoder.php on line 1019*

Code:
$this->configuration = GeneralUtility::makeInstance(ConfigurationReader::class, ConfigurationReader::MODE_DECODE);

What am I doing wrong?
Is PHP >= 5.5 mandatory for realurl 2.x?

dmitryd added a commit that referenced this issue Mar 4, 2016
Change-Id: I41ee58e4e85c97b84221a06948d1ea424e6265f8
@dmitryd
Copy link
Owner

dmitryd commented Mar 4, 2016

Thank you for reporting. The update will be released today.

@AlexanderKoch-Sicherbyte

Seems like this problem reoccurs. Today I prepared an old Typo3 6.2.11 for an Upgrade to a newer release and therefore updated it to the latest 6.2.31 and the newest possible extension-versions first. After installing the realurl-update to 2.3.0 I got

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts//htdocs/typo3conf/ext/realurl/Classes/EncodeDecoderBase.php on line 93

in the Frontend.

The Extension-Repository again points out the following dependencies
TYPO3 (6.2.0 - 8.7.999)
PHP (5.4.0 - 7.1.999)
scheduler (6.2.0 - 8.7.999)
Which is well what I provide with PHP 5.4.45

Fixing the dependency-versions now will still not influence the automatic updater since that would assume it is safe to install realurl 2.3.0 with the dependency for PHP 5.4. Is it possible to fix that back-dated?

dmitryd added a commit that referenced this issue Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants