Skip to content

Instantly share code, notes, and snippets.

@dbalabka
Created November 16, 2015 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbalabka/a201681b527f6deb346e to your computer and use it in GitHub Desktop.
Save dbalabka/a201681b527f6deb346e to your computer and use it in GitHub Desktop.
<?php
$size = 0;
foreach (realpath_cache_get() as $pathInfo) {
$size += strlen($pathInfo['realpath']) + 1 + 56;
}
var_dump($size, ini_get('realpath_cache_size'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment