Variable MEMFS_CENSUS_PHPConst
MEMFS_CENSUS_PHP: "// __CFW_FIBER_SHIM__\n// __CFW_HOST_HELPERS__\n$root = json_decode(__CFW_ROOT__);\n$out = ['root' => $root, 'files' => 0, 'dirs' => 0, 'bytes' => 0, 'bin' => 0];\n\ntry {\n\tif (is_dir($root)) {\n\t\t$it = new RecursiveIteratorIterator(\n\t\t\tnew RecursiveDirectoryIterator($root, FilesystemIterator::SKIP_DOTS),\n\t\t\tRecursiveIteratorIterator::SELF_FIRST,\n\t\t);\n\t\tforeach ($it as $entry) {\n\t\t\tif ($entry->isDir()) {\n\t\t\t\t$out['dirs']++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$out['files']++;\n\t\t\t$out['bytes'] += (int) $entry->getSize();\n\t\t\tif (substr($entry->getFilename(), -4) === '.bin') {\n\t\t\t\t$out['bin']++;\n\t\t\t}\n\t\t}\n\t}\n\t$out['opcacheEnabled'] = (int) ini_get('opcache.enable');\n\t$out['fileCacheOnly'] = (int) ini_get('opcache.file_cache_only');\n\t$out['opcacheLoaded'] = extension_loaded('Zend OPcache');\n\tif (function_exists('opcache_get_status')) {\n\t\t$status = @opcache_get_status(false);\n\t\t$out['opcacheStatus'] = is_array($status)\n\t\t\t? [\n\t\t\t\t'enabled' => $status['opcache_enabled'] ?? null,\n\t\t\t\t'scripts' => $status['opcache_statistics']['num_cached_scripts'] ?? null,\n\t\t\t]\n\t\t\t: null;\n\t}\n\t$out['ok'] = true;\n} catch (Throwable $e) {\n\t$out['error'] = get_class($e) . ': ' . $e->getMessage();\n}\n\necho json_encode($out);\n"