Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Update to CakePHP 2.8.0 copy in lib folder #1306
Conversation
|
What do you guys think of the possibility of making CakePHP a submodule? Because the API uses php traits, I can't use the API on CentOS 6. Anyway, because the API does not work on CentOS 6, I'm not sure how I can test a newer version of CakePHP on this distro. Thoughts? |
|
If you can make a submodule take just one folder of the other project it could work, but then again the next jump to 3 won't just be a swap. Interesting that it doesn't work as CakePHP is PHP 5.3+ and looks like Centos 6 was 5.3.3. The only thing Cake does is the API so if it doesn't work now then no point trying to test it with an update |
|
It isn't Cake, but Crud, which uses php traits, which were implemented in php 5.4. The API needs both to work, which means we must follow the most stringent requirements. |
SteveGilvarry commentedFeb 25, 2016
Path of least resistance for PHP7, was to move to CakePHP 2.8.0. Was just as simple as replacing the lib folder with the new CakePHP version.
Tested on Ubuntu 14.04 PHP 5.5 confirmed version and monitors json both working fine.
Upgraded to PHP 7, restarted apache, fixed new /etc/php/apache2/php.ini file for correct timezones.
Checked version and monitors json post upgrade and working fine and confirmed using /web/api that I was now running CakePHP 2.8.0.
@knnniggett want to test this on centos 6 to confirm it works with php 5.x on there?