Skip to content

Commit

Permalink
add stdin, stdout, stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
astrophysik committed Dec 11, 2024
1 parent 397b11f commit d2b3e5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtin-functions/kphp-light/file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

define('FILE_APPEND', 1);

define('STDIN', 'php://stdin');
define('STDOUT', 'php://stdout');
define('STDERR', 'php://stderr');
// Compiler will call function and save result in global
define('STDIN', fopen('php://stdin', 'r'));
define('STDOUT', fopen('php://stdout', 'w'));
define('STDERR', fopen('php://stdout', 'w'));

function basename ($name ::: string, $suffix ::: string = ''): string;

Expand Down

0 comments on commit d2b3e5c

Please sign in to comment.