Fixed Useless polyfills being loaded

Kirby

Well-known member
Affected version
2.2.4
XenForo 2.2 does include Symfony polyfills polyfill-php56 and polyfill-php70, as well as paragonie/random_compat.

All those do get loaded by Composer.

This seems to be useless overhead as XenForo 2.2 does require PHP 7.0 and those polyfills will do nothing.
 
Last edited:
We've made some changes here for the next release.

Specifically, the following polyfills are no longer included through some composer-fu 🥷:
  • paragonie/random_compat
  • symfony/polyfill-ctype
  • symfony/polyfill-iconv
  • symfony/polyfill-php56
  • symfony/polyfill-php70
We'll continue to exclude polyfills that come in through other packages dependencies, though this will always be based on the XF minimum requirements. This means polyfill libraries may still come in, e.g. polyfill-php72 is still going to be included even if you're using PHP 7.2 or above.
 
Back
Top Bottom