downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

bzerrstr> <bzerrno
[edit] Last updated: Sat, 25 May 2013

view this page in

bzerror

(PHP 4 >= 4.0.4, PHP 5)

bzerror 返回包含 bzip2 错误号和错误字符串的一个 array

说明

array bzerror ( resource $bz )

返回文件指针中返回的 bzip2 错误的错误号和错误字符串。

参数

bz

文件指针。它必须是有效的并且指向 bzopen() 成功打开的文件。

返回值

返回一个关联数组,包含错误码于 errno 条目, 以及错误信息于 errstr 条目。

范例

Example #1 bzerror() 范例

<?php
$error 
bzerror($bz);

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

参见



add a note add a note User Contributed Notes bzerror - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites