Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / tests / phpunit / includes / shell / bin / echo_env.php
blobd5384ce3d64b8dfb5e31c67f3adae8b2852d20e4
1 <?php
3 if ( PHP_SAPI !== 'cli' ) {
4 exit( 1 );
7 for ( $i = 1; $i < count( $argv ); $i++ ) {
8 fprintf( STDOUT, "%s", getenv( $argv[$i] ) );
10 if ( $i + 1 < count( $argv ) ) {
11 fprintf( STDOUT, "\n" );