at-ease/ko
Appearance
at-ease is a PHP library that provides a safe alternative to PHP's @ error control operator.
From 2010 to 2020, it was recommended not to use @ in MediaWiki and extensions, but instead use this library.
The code was originally introduced to MediaWiki in r4261, and then split out into a separate library during the 미디어위키 1.26 development cycle.
Since 2020 and the better support of fatal error handling in PHP 7, it is recommended to use @ in MediaWiki and extensions: see the "Error handling" section on the PHP coding conventions page.
사용법
use Wikimedia\AtEase\AtEase;
// Suppress warnings in a block of code:
AtEase::suppressWarnings();
$content = file_get_contents( 'foobar.txt' );
AtEase::restoreWarnings();
// ..or in a callback function:
AtEase::quietCall( 'file_get_contents', 'foobar.txt' );
Code stewardship
- 알 수 없거나 할당되지 않음[유지 관리자 문서]은(는) 유지 관리자에 의한 것입니다.
- 이슈 트래커: Phabricator at-ease (문제 보고)
같이 보기
- Error Control Operator - php.net
외부 링크
- Source code (Phabricator mirror, GitHub)
- Gerrit code review
- Composer package
- API Documentation
- Test coverage
- Issue tracker