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 5.3 compatibility issue #52

Closed
a-r-m-i-n opened this issue Feb 2, 2016 · 2 comments
Closed

PHP 5.3 compatibility issue #52

a-r-m-i-n opened this issue Feb 2, 2016 · 2 comments
Assignees

Comments

@a-r-m-i-n
Copy link
Contributor

Your extension should be compatible with TYPO3 6.2. This is what you've defined in emconf. But TYPO3 6.2 is compatible with PHP down to version 5.3.7.

Unfortunately your extension is not compatible with that PHP version (5.3.x).

Example:
$this->frontendConfigurationManager->getConfiguration()['settings']['order']

This causes in frontend this error:
Parse error: syntax error, unexpected '[' in ...\typo3conf\ext\sf_filecollection_gallery\Classes\Service\FileCollectionService.php on line 175

To fix it, you need to assign the return value of the method to a variable, and then you are allowed to access the keys of the array.

I did not check the rest of the extension, but when you perform a search on )[ you should find all spots, which are incompatible with older php versions.

@a-r-m-i-n a-r-m-i-n changed the title PHP compatibility issue PHP 5.3 compatibility issue Feb 2, 2016
@machwatt
Copy link
Owner

machwatt commented Feb 2, 2016

Thanks for the issue and your pull request. I might find the time to look for other occurences in the code this evening.

@machwatt
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants