bzerrno
Description
Syntax
bzerrno( resource $bz ): int
Parameters
bz
The file pointer. It must be valid and must point to a file successfully opened by bzopen().
Return
Returns the error number as an integer.
Examples
1 · bz
<? $file = $_SERVER["DOCUMENT_ROOT"] . "/assets/bz2/1.bz2"; $mode = "r"; $bz = bzopen($file, $mode); if($bz === false) { die("bzopen"); } $return = bzerrno($bz); echo $return; bzclose($bz);
0