note 125545 rejected from faq.using by cmb
| From: | cmb@php.net | Date: | Fri, 27 Nov 2020 17:26:40 +0000 |
| Subject: | note 125545 rejected from faq.using by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215902@lists.php.net to get a copy of this message | ||
Note Submitter: thegaby at gmail dot com
----
Regarding memory_limit notation:
If you accidentally configure memory_limit = XXX MB instead of M, PHP will take it as bytes. The
documentation is clear about this, but the default php.ini came with a comment that could be very
confusing:
; Maximum amount of memory a script may consume (128MB)
I think it will help a lot to change that comment to avoid miss configurations, especially because
when debugging using phpinfo() you see that your configuration was taken correctly, and there is no
PHP error; so it is not clear that there is anything wrong with your setting even though there is.