The different behavior of the function uasort in PHP 5.5 and PHP 7.0

后端 未结 2 1495
迷失自我
迷失自我 2021-01-17 12:16

I encountered a strange behavior of Magento 1.8 after changing php version from 5.5 to 7.0. This strange behavior is due to a change in the work function uasort

2条回答
  •  失恋的感觉
    2021-01-17 12:47

    Possible Solution

    I've created a magento module to solve magento issues with totals calculation for php7. The issues I've experienced in particular were that taxes have been added twice to the grand total for pay with amazon module on the amazonpayments checkout page.

    Credits

    The solution was provided by archigrafix on https://magento.stackexchange.com/a/97107/35665 solved my issues - so this is simply the fix packed into a module.

    Module:

    https://github.com/hartmut-ltd/magento-php7-totals-fix

提交回复
热议问题