Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[2.7] CakePHP on PHP7 #8087
Comments
|
@davidsteinsland As you can see from the travis files, only 2.8+ is PHP7 compatible. Please also see http://book.cakephp.org/2.0/en/appendices/2-8-migration-guide.html#php7-compatibility |
dereuromark
added this to the 2.8.0 milestone
Jan 22, 2016
dereuromark
added
the
Question
label
Jan 22, 2016
|
No, I'm not upgrading to a non-stable RC version in our production environments. |
davidsteinsland
closed this
Jan 22, 2016
No it is not. One of the goals for 2.8 is to resolve PHP7 compatibility issues. The 2.8 release is API stable, and we're hoping that people using 2.x and PHP7 try it out in non-production setups and help us flush out any remaining issues. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
davidsteinsland commentedJan 22, 2016
srandwanting an integer, got string:https://github.com/cakephp/cakephp/blob/2.7/lib/Cake/Utility/Security.php#L190
This should be cast to int, no?
I have a basic
DatabaseSessionconfiguration.Warning (4096): session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/sessions)Warning (2): session_write_close(): Session callback expects true/false return value in [Vendor/cakephp/cakephp/lib/Cake/Network/CakeResponse.php, line 1462]Fixed by casting return values of
DatabaseSession::write()tobool. The return value wasmodel->save().Is CakePHP 2.7 even tested on PHP 7 ... ?