« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 44 for caught (0.002 sec.)
Sets default callback to handle requests that are not caught by specific callbac... 11495
« EventHttp::setCallback EventHttp::setMaxBodySize » PHP Manual EventHttp Sets default callback to handle requests that are not caught by specific callbacks 検索 EventHttp::setDefaultCallback (PECL event >= 1.4.0-beta) EventHttp::setDefault ... Callback — Sets default callback to handle requests that are not caught by specific callbacks 説明 public function EventHttp::setDefaultCallback ( string $cb , string $arg = ? ): void Sets defau ... lt callback to handle requests that are not caught by specific callbacks パラメータ cb The callback callable . It should match the following prototype: function callback ( E ... - Sets a callback for specified URI 関連キーワード: EventHttp callback Sets setDefaultCallback req default handle requests caught specific callbacks arg function base http setCallback string cb void EventHttpRequest ...
https://man.mtool.work/php/8.3/eventhttp.setdefaultcallback.html
Sets default callback to handle requests that are not caught by specific callbac... 11495
« EventHttp::setCallback EventHttp::setMaxBodySize » PHP Manual EventHttp Sets default callback to handle requests that are not caught by specific callbacks 検索 EventHttp::setDefaultCallback (PECL event >= 1.4.0-beta) EventHttp::setDefault ... Callback — Sets default callback to handle requests that are not caught by specific callbacks 説明 public function EventHttp::setDefaultCallback ( string $cb , string $arg = ? ): void Sets defau ... lt callback to handle requests that are not caught by specific callbacks パラメータ cb The callback callable . It should match the following prototype: function callback ( E ... k() - Sets a callback for specified URI 関連キーワード: EventHttp callback Sets setDefaultCallback default handle requests caught specific callbacks base http setCallback EventHttpRequest socket bind setMaxBodySize event beta callable match following p ...
https://man.mtool.work/php/8.3/eventhttp.setdefaultcallback.html
Makes event pending 10312
« Event Event::addSignal » PHP Manual Event Makes event pending 検索 Event::add (PECL event >= 1.2.6-beta) Event::add — Makes event pending 説明 public function Event::add ( float $timeout = ? ): bool Marks event pending. Non-pending event ... pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $ ... GTERM , array( $this , 'eventSighandler' )); $this -> ev -> add (); } public function eventSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop ( ... ); ?> 上の例の出力は、 たとえば以下のようになります。 Caught signal 15 例2 Adding a timer <?php $base = new EventBase (); $n = 2 ; $e = Event :: timer ( $base , function( $n ) use (& ...
https://man.mtool.work/php/8.3/event.add.html
Makes event pending 10312
« Event Event::addSignal » PHP Manual Event Makes event pending 検索 Event::add (PECL event >= 1.2.6-beta) Event::add — Makes event pending 説明 public function Event::add ( float $timeout = ? ): bool Marks event pending. Non-pending event ... pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $ ... GTERM , array( $this , 'eventSighandler' )); $this -> ev -> add (); } public function eventSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop ( ... ); ?> 上の例の出力は、 たとえば以下のようになります。 Caught signal 15 例2 Adding a timer <?php $base = new EventBase (); $n = 2 ; $e = Event :: timer ( $base , function( $n ) use (& ...
https://man.mtool.work/php/8.3/event.add.html
Constructing signal events 9789
« Event callbacks Event » PHP Manual Event Constructing signal events 検索 Constructing signal events Event can also watch for POSIX-style signals. To construct a handler for a signal, use Event::__construct() constructor with Event::SIGNAL ... pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $ ... GTERM , array( $this , 'eventSighandler' )); $this -> ev -> add (); } public function eventSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop ( ... gnal base Event php Constructing events construct terminal window ev callbacks also handler examples grep examp ruslan pts Caught MyEventSignal ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
Constructing signal events 9789
« Event callbacks Event » PHP Manual Event Constructing signal events 検索 Constructing signal events Event can also watch for POSIX-style signals. To construct a handler for a signal, use Event::__construct() constructor with Event::SIGNAL ... pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $ ... GTERM , array( $this , 'eventSighandler' )); $this -> ev -> add (); } public function eventSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop ( ... ーワード: signal base Event Constructing events construct terminal window callbacks also handler examples grep examp ruslan Caught MyEventSignal eventSighandler loop call watch style signals constructor flag ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
例外のスローを有効にする 9128
« SQLite3::createFunction SQLite3::enableExtendedResultCodes » PHP Manual SQLite3 例外のスローを有効にする 検索 SQLite3::enableExceptions (PHP 5 >= 5.3.0, PHP 7, PHP 8) SQLite3::enableExceptions — 例外のスローを有効にする 説明 public functi ... ble foo' ); $sqlite -> enableExceptions ( true ); $sqlite -> exec ( 'create table bar' ); } catch ( Exception $e ) { echo 'Caught exception: ' . $e -> getMessage (); } ?> 上の例の出力は、 たとえば以下のようになります。 Warning: SQLite3::exec(): near "f ... oo": syntax error in example.php on line 4 Caught exception: near "bar": syntax error 関連キーワード: SQLite enableExceptions スロー インスタンス sqlite enable exec Stmt 派 ... 生 create table Caught exception near syntax createFunction enableExtendedResultCodes 制御 モード エラーコード メッセージ lastErrorCode lastError ...
https://man.mtool.work/php/8.3/sqlite3.enableexceptions.html
Wrap a PHP callable in a LuaSandboxFunction 8867
« LuaSandbox::unpauseUsageTimer LuaSandboxFunction » PHP Manual LuaSandbox Wrap a PHP callable in a LuaSandboxFunction 検索 LuaSandbox::wrapPhpFunction (PECL luasandbox >= 1.2.0) LuaSandbox::wrapPhpFunction — Wrap a PHP callable in a LuaSan ... turning the empty array. Exceptions will be raised as errors in Lua, however only LuaSandboxRuntimeError exceptions may be caught inside Lua with pcall() or xpcall() . For more information about calling Lua functions and the return values, see LuaSandb ... luasandbox Wraps passed anonymous equivalent returning Exceptions raised errors however LuaSandboxRuntimeError exceptions caught inside pcall ...
https://man.mtool.work/php/8.3/luasandbox.wrapphpfunction.html
Throwable errors 8729
« Error Handling Diagnostic errors » PHP Manual Error Handling Throwable errors 検索 Throwable errors A Throwable error is an execution event which disrupts the normal flow of instructions. When a Throwable error is throw n, be that by the ... engine or manually, it will unwind the call stack until it is caught by a catch block or the global scope is reached, in which case the program is terminated with a fatal error. All finally b ... ying to clone an uncloneable object of class Exception . Global exception handler It's possible to add a handler for any uncaught Throwable with set_exception_handler() . This is similar to wrapping the entire code in a try - catch block, except that e ... of exception\n" ; } } try { throw new CustomException ( "Something happened" , 5 ); } catch ( CustomException $e ) { echo "Caught custom exception\n" , $e ; $e -> customFunction (); } 上の例の出力は以下となります。 Caught custom exception CustomExcepti ...
https://man.mtool.work/php/8.3/language.error-handling.throwable.html
The LuaSandboxFatalError class 8729
« LuaSandboxErrorError LuaSandboxMemoryError » PHP Manual LuaSandbox The LuaSandboxFatalError class 検索 The LuaSandboxFatalError class (PECL luasandbox >= 1.0.0) はじめに Uncatchable LuaSandbox exceptions. These may not be caught inside Lu ... ected private LuaSandbox 継承 Throwable LuaSandboxErrorError LuaSandboxMemoryError luasandbox Uncatchable exceptions These caught inside using pcall xpcall 概要 extends LuaSandboxError プロパティ message code ...
https://man.mtool.work/php/8.3/class.luasandboxfatalerror.html
PREV 1 2 3 4 5 NEXT