RarException::isUsingExceptions
(PECL rar >= 2.0.0)
RarException::isUsingExceptions — 예외가 있는 오류 처리가 사용 중인지 확인
설명
public static RarException::isUsingExceptions(): bool
RAR 함수가 경고를 내보내고 오류 값을 반환하는지 또는 대부분의 상황에서 예외가 발생하는지 확인합니다(잘못된 유형의 인수 전달과 같은 일부 프로그래밍 오류는 포함하지 않음).
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
예외가 사용 중이면 true
를 반환하고 그렇지 않으면 false
를 반환합니다.
Examples
예제 #1 RarException::isUsingExceptions() 예제
<?php
//The default is not to use exceptions
var_dump(RarException::isUsingExceptions());
?>
위의 예는 다음과 유사한 결과를 출력합니다.
bool(false)
기타
- RarException::setUsingExceptions() - 예외가 있는 오류 처리 활성화 및 비활성화