Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cakephp with PHP7

Can I run CakePHP 1.3 with PHP7? I have to do a migration to PHP7, but in the hosting there is a project in CakePHP 1.3 and need to know if there is any risk if I run this project in this version of PHP.

like image 456
Ale Avatar asked Feb 25 '16 15:02

Ale


People also ask

What is CakePHP?

CakePHP is a free, open-source, rapid development framework for PHP. It's a foundational structure for programmers to create web applications. Our primary goal is to enable you to work in a structured and rapid manner–without loss of flexibility. CakePHP takes the monotony out of web development.

What is CakePHP developer?

A CakePHP Developers are usually responsible for writing server-side web application logic using the CakePHP framework. They mainly develop back-end components and connect the application with the other web services. In addition, they support the front-end developers by integrating their work with the application.


Video Answer


2 Answers

Unfortunately CakePHP 1.3 is not really compatible with PHP7 out of the box. I work on a old project in CakePHP 1.3 and my system upgraded to PHP7. There are a lot of these in the core of CakePHP 1.3

After changing these, I ran into the next batch of errors, after which I rolled back and postponed the upgrade.

So to answer the question, it would be rather risky upgrading to PHP7 if there is a CakePHP 1.3 project.

like image 129
Jan Avatar answered Sep 22 '22 06:09

Jan


If you are still looking for a CakePHP 1.3 port to PHP7, you are in luck!

I've ported CakePHP 1.3.21 to PHP 7.3, you can check it out on GitHub.

Please pay attention to the readme, as it naturally requires changes to your own code as well!

like image 23
anty Avatar answered Sep 22 '22 06:09

anty