Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291828

Refactor drupal_check_memory_limit() to use Symfony's MemoryDataCollector class

$
0
0

Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector is already in core, but we are not using it. It can get the current PHP memory_limit setting and convert it into a byte count.

The attached patch updates drupal_check_memory_limit() to use MemoryDataCollector and also simplifies everything.

AttachmentSizeStatusTest resultOperations
use-MemoryDataCollector.patch8.98 KBIdlePASSED: [[SimpleTest]]: [MySQL] 57,443 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 291828

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>