An unofficial port of CakePHP 1.3.21 to PHP 7.2.
- Make sure your code is PHP 7.2 ready. php7cc is a good start, just exclude the cake-directory in your scans.
- If you made any changes in the cake-directory, that you want to reapply in the PHP 7-version, write them down.
- Delete your cake-directory.
- Copy only the cake-directory from this repository to your existing installation.
- Reapply the changes you wrote down in step 2.
- Find and fix problems related to the changes described below.
Porting CakePHP to PHP 7.2 required the introduction of some breaking changes. Make sure you update your own code accord to the following changes:
Two classes had to be renamed:
- The class
String
has been renamed toCakeString
- The class
Object
has been renamed toCakeObject
Three class functions had to be renamed:
JsHelper->value()
has been renamed toJsHelper->jsonValue()
JavascriptHelper->value()
has been renamed toJavascriptHelper->jsonValue()
JsBaseEngineHelper->value()
has been renamed toJsBaseEngineHelper->jsonValue()
Two database drivers had to be removed:
- "mysql" (replace with "mysqli")
- "mssql"
One configuration variable has to be changed:
- "Security.cipherSeed" must be a valid
int
instead of a string. Make sure, it is small enough to be treated like an int, and not like a float on your system. Otherwise cookies will not be decoded correctly!
Tests have not yet been ported to PHP 7.
Please issue a pull request if you want to contribute.