OutsideIT / FireMotD

:fire: Fire Framework Linux MoTD Generator :fire:
https://outsideit.net/firemotd
GNU General Public License v3.0
174 stars 45 forks source link

Get latest memory_limit from php.ini and convert -1 to Unlimited #41

Closed dimon222 closed 7 years ago

dimon222 commented 7 years ago

Should fix #33 and partially fix #28 (only the part related to convert -1 to unlimited)

dimon222 commented 7 years ago

The only thing that I noticed, is that regex doesn't handle the matching if there's no space in php.ini between name and value. Not sure if its valid according to rules for php.ini, but I feel it might require some adjustment.

This will be matched memory_limit = -1

This will not be matched memory_limit=-1

willemdh commented 7 years ago

Tx!