osx - how does php composer know the php version? -
having upgraded test site (debian linux) zend framework 3, want repeat exercise on os x el capitan running server 5.1.5. had php 5.5.x installed i've upgraded php 5.6.x , verified phpinfo() display. however, when try run composer install zend framework 3 modules, responds can't done php 5.5.x installed. restarting etc. makes no difference. how composer tell php version in use , how can convince php 5.6.x installed?
when understand correctly, server php 5.6 , should able run zf3, cli php 5.5 , composer stops fetching zf3 modules, because php low, right?
you have 1 php cli , php server. when run composer
check php version of running php used cli.
two solutions come mind:
- update php used on cli or
- append
--ignore-platform-reqs
composer command. ignore env checks , pretend ok. keep in mind disable checks extensions, might needed of modules.
Comments
Post a Comment