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

search for in the

RarException::setUsingExceptions> <RarException
[edit] Last updated: Fri, 25 May 2012

view this page in

RarException::isUsingExceptions

(PECL rar >= 2.0.0)

RarException::isUsingExceptions例外によるエラー処理を使っているかどうかを調べる

説明

public static bool RarException::isUsingExceptions ( void )

RAR 関数が警告を発してエラー値を返すようになっているか、 あるいは例外をスローするようになっているかを調べます (引数の型を間違えるなどのプログラム上のエラーは含めません)。

パラメータ

この関数にはパラメータはありません。

返り値

例外を使っている場合に TRUE、それ以外の場合に FALSE を返します。

例1 RarException::isUsingExceptions() の例

<?php
// デフォルトでは例外を使いません
var_dump(RarException::isUsingExceptions());
?>

上の例の出力は、 たとえば以下のようになります。

bool(false)

参考



add a note add a note User Contributed Notes RarException::isUsingExceptions
There are no user contributed notes for this page.

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