/** * Get realpath cache entries * * Get the contents of the realpath cache such as path, path expiration and is_dir * Performance costs * * @return array */ public function getRealpathCacheGet() { return realpath_cache_get(); }
<?php var_dump(realpath_cache_size()); $data = realpath_cache_get(); var_dump($data[__DIR__]); echo "Done\n";
/** * Get realpath cache entries * * @return array */ public function realpathCacheGet() : array { return realpath_cache_get(); }
$userid = USERID; } else if (in_array(CRON_PAGE, non_auth_pages())) { $userid = "[CRON]"; } else { $userid = ''; } if (is_array($lab_fields)) { foreach ($lab_fields AS $field_collection) { foreach ($field_collection AS $key => $val) { $chkd_fields_array[] = $key; } } $chkd_fields = "'" . implode("', '", array_unique($chkd_fields_array)) . "'"; } create_cdisc_download($table_name, $lang, $app_title, $userid, $user_rights, $chkd_fields, '', $project_id, $constants['DOMAIN'], $debug); } else { error_log("SQL INSERT FAILED: " . db_error() . "\n"); echo db_error() . "<br />"; } } else { error_log("TRUNCATE FAILED: " . db_error() . "\n"); echo db_error() . "<br />"; } } $timer['main_end'] = microtime(true); $init_time = benchmark_timing($timer); echo $init_time; d(memory_get_peak_usage(true)); d(realpath_cache_size()); d(realpath_cache_get());
<h3><code>resource</code> popen(<code>string $command, $string $mode</code>) <span class="badge">4+</span></h3> <h3><code>int</code> readfile(<code>string $filename [, bool $use_include_path = false [, resource $context]]</code>) <span class="badge">4+</span></h3> <h3><code>string</code> readlink(<code>string $path</code>) <span class="badge">4+</span></h3> <h3><code>int</code> realpath_cache_get() <span class="badge">5.3.2+</span></h3> <div><?php var_dump(realpath_cache_get()); ?> </div> <h3><code>int</code> realpath_cache_size() <span class="badge">5.3.2+</span></h3> <h3><code>string</code> realpath(<code>string $path</code>) <span class="badge">4+</span></h3> <div><?php var_dump(realpath('..')); ?> </div>
<?php $tpl->setVariable('realpath_cache', array('available' => ini_get('realpath_cache_size'), 'used' => realpath_cache_size(), 'entries' => count(realpath_cache_get()), 'ttl' => ini_get('realpath_cache_ttl')));