This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from Maks3w/Maks3w-patch-1
Application config with PHP 5.5 ::class style
- Loading branch information
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After that commit I got
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in ...module/Application/config/module.config.php on line 78
after fresh installation
php 5.3.29
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jokersoft the requirement to run the skeleton is now PHP 5.5. Please note that existing apps are unaffected by this change.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jokersoft which page? That needs updating: versions of zendframework below 2.5.0 are PHP 5.3 compatible.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened zendframework/zf2-documentation#1516 to fix this
Yeah, this is probably something that could be fixed in the README, but in general,
composer.json
dictates the dependencies in modern PHP packages - you can always refer to that file as authoritative source of truth when it comes to dependencies (what isn't in there is to be considered missing or a dependency-related bug)index.php
acts post-installation: this sort of error is caught during composer installation.I've opened #313 to address this, as it seems that you installed ZF2 without composer.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jokersoft that seems weird: it should simply refuse to install, given that
composer.json
requires5.5
or more...6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jokersoft is your PHP CLI the same as the one used for your http requests (presumably apache2/nginx + mod_php or fastcgi)?
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6ba430f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.