I have to install ZF2 on Windows:
php composer.phar self-update
(everything is ok) php composer.phar install
And now I get this:
zendframework/zendframework 2.3.1 requires php >= 5.3.23 -> no matching package found.
Okay, I've checked php version php -v
:
PHP 5.3.6 (cli) (built: Mar 17 2011 10:37:07)
Any ideas?
ZF 2.3.0 and above requires PHP 5.3.23 or above. You have 5.3.6 (6 is less than 23!). You either need to upgrade PHP to a more recent version, or downgrade to ZF 2.2.x.
5.3.6 is less than 5.3.23. >=
means "greather than or equal to".
Zend Framework 2 requires at least 5.3.23
, while you have 5.3.6
. That means your PHP version is not supported, you can't use the Zend Framework on that server.
What you can do:
I suggest you update your local Windows version of PHP to the version you are using in production. If that production version is not able to run Zend Framework 2.3.1, you'd not benefit from solving the dependency problem you are experiencing.
Composer does not allow you to change the internally used PHP version if your local PHP is simply used to put together all dependencies but to used to execute these. So matching the production version is a good thing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.