PHP 8.5.0 Alpha 4 available for testing

Voting

: max(six, nine)?
(Example: nine)

The Note You're Voting On

Anonymous
9 years ago
The earlier posted code has a small bug in it: it uses bzerror instead of bzerrno. Should be like this:

$fh = bzopen('file.bz2','r');
while(!feof($fh)) {
$buffer = bzread($fh);
if($buffer === FALSE) die('Read problem');
if(bzerrno($fh) !== 0) die('Compression Problem');
}
bzclose($fh);

<< Back to user notes page

To Top