4 ms·
Are there any issues running PHP 5.6-based code on a PHP 7.x VM?
by kbumsik 7y ago
Are there any issues running PHP 5.6-based code on a PHP 7.x VM?
- pbowyer 7y agoVery few. It's worth running one of the code analysers over your codebase to check: https://github.com/PHPCompatibility/PHPCompatibility https://github.com/PHPCompatibility/PHPCompatibility I upgraded a large project last month, and this found 6 changes I had to make in 20k LOC.
- nkozyra 7y agoDepends on the x, but more importantly, depends on the code.
- laszlokorte 7y ago> PHP7 support - String class must be renamed, it is reserved in PHP7 [0] [0]: https://www.drupal.org/project/graphql/issues/2715609 https://www.drupal.org/project/graphql/issues/2715609
- Ididntdothis 7y agoWith clean code it’s probably ok. But with other “clever” code you may see different behavior which is often hard to catch.