Warning: session_start(): open(/var/lib/php/sessions/sess_u1nd94kchba20ood3cinp7c41m, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass CountingOutputStream extends FilterOutputStream {
long counter;
*(OutputStream out) { super(out); }
@Override
public void write(int b) throws IOException {
++counter;
out.write(b);
}
@Override
public void write(byte[] b) throws IOException {
counter += b.length;
out.write(b, 0, b.length);
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
if (len == 0) ret;
counter += len;
out.write(b, off, len);
}
long getFilePointer() { ret counter; }
}