mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
util/phplogtime: use '-' to read from stdin
This commit is contained in:
parent
c44f3c1bdd
commit
270ee436fe
2 changed files with 5 additions and 0 deletions
1
boot.php
1
boot.php
|
@ -696,6 +696,7 @@ function startup() {
|
|||
// Disable transparent Session ID support
|
||||
@ini_set('session.use_trans_sid', 0);
|
||||
}
|
||||
@ini_set('pcre.jit',0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@ else {
|
|||
$file = 'php.out';
|
||||
}
|
||||
|
||||
if ($file === '-') {
|
||||
$file = 'php://stdin';
|
||||
}
|
||||
|
||||
$lines = @file($file);
|
||||
if (! $lines) {
|
||||
exit (0);
|
||||
|
|
Loading…
Reference in a new issue