Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework 2 need PHP version 5.3.3?

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

like image 426
Sefier Tang Avatar asked Sep 17 '12 09:09

Sefier Tang


2 Answers

It doesn't use traits, it lets you use traits. The requirement is 5.3.3, but using the traits part of the framework requires 5.4.

It doesn't break anything.

Update: See also this recent issue.

like image 181
Sherlock Avatar answered Sep 19 '22 18:09

Sherlock


ZF2 has some traits and other PHP 5.4 features but are only enabled if you use PHP 5.4 else the same equivalent for PHP 5.3 is used

like image 25
Maks3w Avatar answered Sep 18 '22 18:09

Maks3w