Re: [PHP-DEV] PHP 8 Backward Incompatible Change Notifications

2023-05-18 Thread Thomas Bley
Hi Alan, regarding "String to Number Comparison", you can cast the value to int to get the old behaviour: php -r "var_dump(0 == (int) '0');" php -r "var_dump(0 == (int) '0.0');" php -r "var_dump(0 == (int) 'foo');" php -r "var_dump(0 == (int) '');" php -r "var_dump(42 == (int) ' 42');" php -r "v

[PHP-DEV] PHP 8 Backward Incompatible Change Notifications

2023-05-18 Thread Alan Smithee
Hi Internals! Looking for counsel from the PHP maintainers here regarding the upgrade path from PHP v7 to v8. There is a subset of backward incompatible language changes that are remarkably tricky to track back into a codebase through manual code inspection, automated testing, or static anal