Page 1 of 1
Wrong PHP version?
Posted: Sat Sep 17, 2022 7:46 pm
by pm-netti
The file startup.php contains this text:
Code: Select all
if (version_compare(phpversion(), '8.0.0', '<')) {
exit('PHP8+ Required');
}
But there is a text in vendor/composer/platform_check.php:
Code: Select all
if (!(PHP_VERSION_ID >= 80100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
}
This vendor required PHP 8.1
At least in some plugins that use a vendor, the program execution seems to bump into this.
Re: Wrong version?
Posted: Sun Sep 18, 2022 12:48 am
by straightlight
OC version. Already added in the opencart-3 repository.
Re: Wrong version?
Posted: Sun Sep 18, 2022 6:56 pm
by pm-netti
straightlight wrote: ↑Sun Sep 18, 2022 12:48 am
Already added in the opencart-3 repository.
Where does this problem appear in the OC 3 version? For example, OC 3's Guzzlehttp only requires php version 5.3.1., OC 3 required PHP 5.4 and 7.3
Re: Wrong version?
Posted: Sun Sep 18, 2022 7:55 pm
by straightlight
pm-netti wrote: ↑Sun Sep 18, 2022 6:56 pm
straightlight wrote: ↑Sun Sep 18, 2022 12:48 am
Already added in the opencart-3 repository.
Where does this problem appear in the OC 3 version? For example, OC 3's Guzzlehttp only requires php version 5.3.1., OC 3 required PHP 5.4 and 7.3
Previous versions PHP will be deprecated soon. PHP 8 will be the version ahead until the next change.
Re: Wrong version?
Posted: Sun Sep 18, 2022 8:59 pm
by pm-netti
straightlight wrote: ↑Sun Sep 18, 2022 7:55 pm
Previous versions PHP will be deprecated soon. PHP 8 will be the version ahead until the next change.
As it became obvious from the first post, php version 8.0 is too low, the php version requirement should be 8.1
Re: Wrong version?
Posted: Sun Sep 18, 2022 9:19 pm
by straightlight
pm-netti wrote: ↑Sun Sep 18, 2022 8:59 pm
straightlight wrote: ↑Sun Sep 18, 2022 7:55 pm
Previous versions PHP will be deprecated soon. PHP 8 will be the version ahead until the next change.
As it became obvious from the first post, php version 8.0 is too low, the php version requirement should be 8.1
Previous versions will be deprecated soon. That was the point I brought.