bzerrstr
Description
Syntax
bzerrstr(
resource $bz
): stringParameters
bz
The file pointer. It must be valid and must point to a file successfully opened by bzopen().
Return
Returns a string containing the error message.
Examples
1 · bz
<?
$file = $_SERVER["DOCUMENT_ROOT"] . "/assets/bz2/1.bz2";
$mode = "r";
$bz = bzopen($file, $mode);
if($bz === false)
{
die("bzopen");
}
$return = bzerrstr($bz);
echo $return;
bzclose($bz);
OK