craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.21k stars 624 forks source link

TypeError caused by php.ini value bigger than PHP_INT_MAX #1771

Closed benjamin-luescher closed 7 years ago

benjamin-luescher commented 7 years ago

Description

PHP TypeError is thrown when config value with 'M' or 'G' suffix in php.ini is bigger than PHP_INT_MAX. (E.g. _memorylimit = 2048M)

Return value of craft\helpers\App::phpConfigValueInBytes() must be of the type integer, float returned

Steps to reproduce

Following steps are describing the problem for my environment:

  1. Change memory_limit to 2048M
  2. Open the login page for craft /admin
  3. TypeError appears

Additional info

Full Stacktrace: TypeError - http___craft3.local_admin_login.pdf

brandonkelly commented 7 years ago

Thanks!