peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

Fix of php warning: Set memory_limit only if the current value is smaller #96

Closed GalileoWebagentur closed 3 years ago

GalileoWebagentur commented 3 years ago

image (1)

peteboere commented 3 years ago

Thanks for your pull request.

This won't work currently as is because memory ini values can be set with different units:

ini_get('memory_limit') === '1G' // Or '1000K'

Would need to convert the result of ini_get('memory_limit') to MB before the comparison.

GalileoWebagentur commented 3 years ago

Alright, added a commit with code from https://www.php.net/manual/de/function.ini-get.php to parse the memory_limit value