array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.bzerror.php', 1 => 'bzerror', 2 => 'Returns the bzip2 error number and error string in an array', ), 'up' => array ( 0 => 'ref.bzip2.php', 1 => 'Bzip2 Funzioni', ), 'prev' => array ( 0 => 'function.bzerrno.php', 1 => 'bzerrno', ), 'next' => array ( 0 => 'function.bzerrstr.php', 1 => 'bzerrstr', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/bzip2/functions/bzerror.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

bzerror

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

bzerror Returns the bzip2 error number and error string in an array

Descrizione

bzerror(resource $bz): array

Returns the error number and error string of any bzip2 error returned by the given file pointer.

Elenco dei parametri

bz
The file pointer. It must be valid and must point to a file successfully opened by bzopen().

Valori restituiti

Returns an associative array, with the error code in the errno entry, and the error message in the errstr entry.

Esempi

Example #1 bzerror() example

<?php
$error
= bzerror($bz);

echo
$error["errno"];
echo
$error["errstr"];
?>

Vedere anche: