☰
Debian Codegraph
@
1:1.43.9+dfsg-1
/
/
tests
/
phpunit
/
includes
/
shell
/
bin
/
stdout_stderr.php
☽
☼
tests/phpunit/includes/shell/bin/stdout_stderr.php
code
plain
raw
symbols
SCIP
GPL-2.0+
2001-2024, MediaWiki developers
debian/copyright
1
<?php
2
3
if
(
PHP_SAPI
!==
'
cli
'
) {
4
exit
(
1
);
5
}
6
7
file_put_contents
(
"
php://stdout
"
, $argv[
1
] );
8
if
(
isset
( $argv[
2
] ) ) {
9
file_put_contents
(
"
php://stderr
"
, $argv[
2
] );
10
}