(PHP 5 >= 5.3.2)
realpath_cache_size — Get realpath cache size
Get the amount of memory used by the realpath cache.
Returns how much memory realpath cache is using.
Beispiel #1 realpath_cache_size() example
<?php
var_dump(realpath_cache_size());
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
int(412)
Note that the realpath cache is not used if either safe_mode is on or an open_basedir restriction is in effect.
This is having a huge performance effect, causing lots of calls to lstat.
A bugreport has already been filed at http://bugs.php.net/bug.php?id=52312