Fixed a broken fwrite call in the PHP Stream debug.

This commit is contained in:
Technosophos
2012-08-07 14:07:13 -05:00
parent 06d7cf1a92
commit e398aa0b41

View File

@@ -293,8 +293,8 @@ class PHPStreamTransport implements Transporter {
$out = sprintf("Content-Type: %s\n", $msg); $out = sprintf("Content-Type: %s\n", $msg);
break; break;
case STREAM_NOTIFY_PROGRESS: case STREAM_NOTIFY_PROGRESS:
fwrite($msg . PHP_EOL); $out = sprintf($msg . PHP_EOL);
$out = sprintf("%d bytes of %s\n", $bytes, $filesize); $out .= sprintf("%d bytes of %s\n", $bytes, $filesize);
break; break;
default: default:
$out = sprintf("Code: %d, Message: %s\n", $code, $msg); $out = sprintf("Code: %d, Message: %s\n", $code, $msg);