<?php getcwd(): string|false
<?php private function replaceCwd($file) { $cwd = getcwd(); if ($cwd === false) { return $file; }