diff --git a/bin/deluser.sh b/bin/deluser.sh index d2148756e..63473012d 100755 --- a/bin/deluser.sh +++ b/bin/deluser.sh @@ -34,7 +34,7 @@ function print_usage() function _die($msg, $usage=false) { - fputs(STDERR, $msg . "\n"); + fwrite(STDERR, $msg . "\n"); if ($usage) print_usage(); exit(1); } diff --git a/bin/dumpschema.sh b/bin/dumpschema.sh index 32c90ac13..d1d2999d6 100755 --- a/bin/dumpschema.sh +++ b/bin/dumpschema.sh @@ -91,7 +91,8 @@ else { $schema->disconnect(); -if ($error && !$_SERVER['REMOTE_ADDR']) - fputs(STDERR, $error); +if ($error && !$_SERVER['REMOTE_ADDR']) { + fwrite(STDERR, $error); +} ?> diff --git a/bin/package2composer.sh b/bin/package2composer.sh index 3e5c081f2..5f3438cd0 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -97,7 +97,7 @@ else if (defined('JSON_PRETTY_PRINT')) { echo json_encode($data, $flags); } else { - fputs(STDERR, + fwrite(STDERR, "FAILED! composer.phar not found in current directory. Please download it from http://getcomposer.org/download/ or with diff --git a/plugins/password/drivers/smb.php b/plugins/password/drivers/smb.php index eebb3a3b4..0ffcbda57 100644 --- a/plugins/password/drivers/smb.php +++ b/plugins/password/drivers/smb.php @@ -48,9 +48,9 @@ class rcube_smb_password $cmd = $bin . ' -r ' . escapeshellarg($host) . ' -s -U "' . escapeshellarg($username) . '" > ' . $tmpfile . ' 2>&1'; $handle = @popen($cmd, 'w'); - fputs($handle, $currpass."\n"); - fputs($handle, $newpass."\n"); - fputs($handle, $newpass."\n"); + fwrite($handle, $currpass."\n"); + fwrite($handle, $newpass."\n"); + fwrite($handle, $newpass."\n"); @pclose($handle); $res = file($tmpfile); unlink($tmpfile); diff --git a/program/lib/Roundcube/rcube_output.php b/program/lib/Roundcube/rcube_output.php index 5c83ba99d..ab8fabeb1 100644 --- a/program/lib/Roundcube/rcube_output.php +++ b/program/lib/Roundcube/rcube_output.php @@ -273,7 +273,7 @@ abstract class rcube_output public function raise_error($code, $message) { // STUB: to be overloaded by specific output classes - fputs(STDERR, "Error $code: $message\n"); + fwrite(STDERR, "Error $code: $message\n"); exit(-1); }