Zend Framework 2 need PHP 5.3.3?

They declare PHP_VERSION> = 5.3.3, however in their code something like "trait", which was introduced in 5.4, appears everywhere. I'm confused!

+7
source share
2 answers

It does not use functions , it allows you to use features . The requirement is 5.3.3, but using traits within the framework requires 5.4.

It will not break anything.

Update: See also this recent issue .

+8
source

ZF2 has some features and other functions of PHP 5.4, but they are only included if you are using PHP 5.4, otherwise the same equivalent is used for PHP 5.3

+2
source

All Articles