util/phplogtime: use '-' to read from stdin

This commit is contained in:
zotlabs 2020-07-08 17:00:41 -07:00
parent c44f3c1bdd
commit 270ee436fe
2 changed files with 5 additions and 0 deletions

View file

@ -696,6 +696,7 @@ function startup() {
// Disable transparent Session ID support
@ini_set('session.use_trans_sid', 0);
}
@ini_set('pcre.jit',0);
}

View file

@ -16,6 +16,10 @@ else {
$file = 'php.out';
}
if ($file === '-') {
$file = 'php://stdin';
}
$lines = @file($file);
if (! $lines) {
exit (0);