Variables should be in lower case.
if (is_cli()) {
$options = parse_options_cli($argv, $argc);
if (is_cli()) {
$options = parse_options_cli($argv, $argc);
- $ERROR_STREAM = fopen('php://stderr', 'w');
+ $error_stream = fopen('php://stderr', 'w');
}
else {
$options = parse_options_query_string();
}
else {
$options = parse_options_query_string();
- $ERROR_STREAM = fopen('php://output', 'w');
+ $error_stream = fopen('php://output', 'w');
}
if (!isset($options['src_url'])) {
}
if (!isset($options['src_url'])) {
- fwrite($ERROR_STREAM, usage(is_cli() ? $argv : NULL));
+ fwrite($error_stream, usage(is_cli() ? $argv : NULL));