Closed xxsimoxx closed 1 year ago
This issue has been mentioned on ClassicPress Forums. There might be relevant details there:
https://forums.classicpress.net/t/unable-to-install-classicpress-1-5-0/4494/5
Giving a quick look around there are polyfills, so maybe the list can be cut down to this:
FILE: src/wp-includes/SimplePie/Locator.php
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
88 | ERROR | The built-in interface Throwable is not present in PHP version 5.6 or earlier
--------------------------------------------------------------------------------------------
FILE: src/wp-admin/includes/upgrade.php
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
2773 | ERROR | The function str_contains() is not present in PHP version 7.4 or earlier
-----------------------------------------------------------------------------------------
Looking at the 2 issues in the follow up comment:
The Throwable interface, it seems it cannot be polyfilled and it seems it would silently fail on PHP 5.6 as the code stands according to this: https://www.php.net/manual/en/class.throwable.php Silent failure isn’t ideal but it’s better than throwing loads of errors.
The second issue should be satisfactorily addressed in ClassicPress/ClassicPress#1212
Closed by ClassicPress/ClassicPress#1212.
Expected behavior
Compatibility with PHP 5.6. Installation without errors on PHP 5.6.
Current behavior
This is the output of
phpcs --standard=PHPCompatibility --runtime-set testVersion 5.6
:ClassicPress version
1.5.0 and prior
PHP version
5.6