aboutsummaryrefslogtreecommitdiff
path: root/lib/command-helper.php
blob: c406b9e6ba1a5a83ec621675ced92cfedfa62918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

function stderr($str) {
	$args = func_get_args();
	$args[0] = $args[0]."\n";
	array_unshift($args, STDERR);
	call_user_func_array('fprintf', $args);
}

function stdout($str) {
	$args = func_get_args();
	$args[0] = $args[0]."\n";
	array_unshift($args, STDOUT);
	call_user_func_array('fprintf', $args);
}