4.7.1 -- Cli Patch?

I'm upgrading to the latest version of cs-cart and I'm not seeing that PHP_SAPI == 'cli' check in Tygh/Bootstrap.php

Is this addressed somewhere else in 4.7.1?

I'm upgrading to the latest version of cs-cart and I'm not seeing that PHP_SAPI == 'cli' check in Tygh/Bootstrap.php

Is this addressed somewhere else in 4.7.1?

Unfortunately, this fix was not included in 4.7.x. The issue will be addressed in CS-Cart 4.7.1.SP3 that should be released today.

can u provide fix ? from 4.7.1 sp2 to sp3 ?

can u provide fix ? from 4.7.1 sp2 to sp3 ?

What fix do you mean? if you use 4.7.1SP2 the best scenario is to update to 4.7.1SP3

done that.

thx.

So- if I understand correctly, this was an inadvertant regression with 4.7.x?

And the purpose of the 4.7.1.SP2 -> 4.7.1.SP3 upgrade is to restore the recommended upgrade described here?

  • Go to the app/Tygh directory of your CS-Cart or Multi-Vendor installation and find the file called Bootstrap.php.
  • Find the following line in that file:
    if (empty($server['REQUEST_METHOD'])) {
  • Replace it with the following line and save your changes:
    if (PHP_SAPI === 'cli') {

Does this mean that 4.7.1.SP2 would be safe if the change was made manually (as described above), then?

- Smich

Yes, you are right

So- if I understand correctly, this was an inadvertant regression with 4.7.x?

And the purpose of the 4.7.1.SP2 -> 4.7.1.SP3 upgrade is to restore the recommended upgrade described here?

  • Go to the app/Tygh directory of your CS-Cart or Multi-Vendor installation and find the file called Bootstrap.php.
  • Find the following line in that file:
    if (empty($server['REQUEST_METHOD'])) {
  • Replace it with the following line and save your changes:
    if (PHP_SAPI === 'cli') {

Does this mean that 4.7.1.SP2 would be safe if the change was made manually (as described above), then?

- Smich

Yes, you are right

Thank you for the reply.