简体   繁体   English

CakePHP X版本与PHP Y版本兼容

[英]CakePHP is version X compatible with PHP Version Y

I'm currently using CakePHP 2.1.1 with PHP 5.3 and want to upgrade to PHP 5.5 (integrated OPCache), though I'm not sure if CakePHP is compatible with it. 我目前正在将CakePHP 2.1.1与PHP 5.3结合使用,并希望升级到PHP 5.5(集成的OPCache),尽管我不确定CakePHP是否与它兼容。 Is there an easy way to figure out if those two versions are compatible without installing it beforehand? 是否有一种简便的方法来确定这两个版本是否兼容而无需事先安装?

Maybe some hint in the documentation? 也许在文档中有一些提示?

First of all, you should really, really upgrade your CakePHP installation, 2.1.1 is already 3+ years old. 首先,您应该真正升级您的CakePHP安装,2.1.1已经使用3年以上了。

That being said, you can always check the Travis CI configuration and results for a specific branch/version to figure which PHP versions are compatible. 话虽如此,您始终可以检查Travis CI配置和特定分支/版本的结果,以了解哪些PHP版本兼容。 The first CakePHP version being tested against PHP 5.5 out of the box is version 2.3.6 开箱即用的针对PHP 5.5的第一个CakePHP版本是2.3.6版本。

In case the desired PHP version isn't being tested already, you can always fork the CakePHP GitHub repo and add additional PHP Versions to the Travis CI configuration to see whether the tests are passing (requires a Travis CI account and a GitHub Hook). 如果所需的PHP版本尚未经过测试,则始终可以派出CakePHP GitHub存储库,并将其他PHP版本添加到Travis CI配置中,以查看测试是否通过(需要Travis CI帐户和GitHub Hook)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM