« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 21 for returnCode (0.004 sec.)
GearmanJob::returnCode — Get last return code | PHP 8.3 11619
GearmanJob::returnCode (PECL gearman >= 0.5.0) GearmanJob::returnCode — Get last return code 説明 public function GearmanJob::returnCode (): int Returns the last return code issued by the job server. パラメータ この関数にはパラメータはありま ... せん。 戻り値 A valid Gearman return code. 参考 GearmanTask::returnCode() - Get the last return code 他のマニュアルの関連ページ Python http.server ...
https://man.mtool.work/php/8.3/gearmanjob.returncode.html
GearmanTask::returnCode — Get the last return code | PHP 8.3 11619
GearmanTask::returnCode (PECL gearman >= 0.5.0) GearmanTask::returnCode — Get the last return code 説明 public function GearmanTask::returnCode (): int Returns the last Gearman return code for this task. パラメータ この関数にはパラメータはあ ... りません。 戻り値 A valid Gearman return code. 参考 GearmanClient::returnCode() - Get the last Gearman return code 他のマニュアルの関連ページ FastAPI Response ...
https://man.mtool.work/php/8.3/gearmantask.returncode.html
GearmanClient::returnCode — Get the last Gearman return code | PHP 8.3 10367
GearmanClient::returnCode (PECL gearman >= 0.5.0) GearmanClient::returnCode — Get the last Gearman return code 説明 public function GearmanClient::returnCode (): int Returns the last Gearman return code. パラメータ この関数にはパラメータはあ ... りません。 戻り値 A valid Gearman return code. ...
https://man.mtool.work/php/8.3/gearmanclient.returncode.html
GearmanWorker::returnCode — Get last Gearman return code | PHP 8.3 10181
GearmanWorker::returnCode (PECL gearman >= 0.5.0) GearmanWorker::returnCode — Get last Gearman return code 説明 public function GearmanWorker::returnCode (): int Returns the last Gearman return code. パラメータ この関数にはパラメータはありま ... せん。 戻り値 A valid Gearman return code. 参考 GearmanWorker::error() - Get the last error encountered GearmanWorker::getErrno() - Get errno ...
https://man.mtool.work/php/8.3/gearmanworker.returncode.html
GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 9792
GearmanClient::do (PECL gearman >= 0.5.0) GearmanClient::do — Run a single task and return a result [deprecated] 説明 public function GearmanClient::do ( string $function_name , string $workload , string $unique = ? ): string The GearmanCli ... addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ... sult = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { case GEARMAN_WORK_DATA : echo "Data: $result \n" ; break; case GEARMAN_WORK_STATUS : list( $numerator , $denominator ... break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclient -> returnCode () . "\n" ; echo "Error: " . $gmclient -> error () . "\n" ; echo "Errno: " . $gmclient -> getErrno () . "\n" ; exit; } } w ...
https://man.mtool.work/php/8.3/gearmanclient.do.html
GearmanClient::doNormal — Run a single task and return a result | PHP 8.3 9792
GearmanClient::doNormal (No version information available, might only be in Git) GearmanClient::doNormal — Run a single task and return a result 説明 public function GearmanClient::doNormal ( string $function , string $workload , ? string $ ... addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ... sult = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { case GEARMAN_WORK_DATA : echo "Data: $result \n" ; break; case GEARMAN_WORK_STATUS : list( $numerator , $denominator ... break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : break; default: echo "RET: " . $gmclient -> returnCode () . "\n" ; echo "Error: " . $gmclient -> error () . "\n" ; echo "Errno: " . $gmclient -> getErrno () . "\n" ; exit; } } w ...
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
GearmanWorker::setTimeout — Set socket I/O activity timeout | PHP 8.3 9505
GearmanWorker::setTimeout (PECL gearman >= 0.6.0) GearmanWorker::setTimeout — Set socket I/O activity timeout 説明 public function GearmanWorker::setTimeout ( int $timeout ): true Sets the interval of time to wait for socket I/O activity. パ ... to 5 seconds $gmworker -> setTimeout ( 5000 ); echo "Waiting for job...\n" ; while(@ $gmworker -> work () || $gmworker -> returnCode () == GEARMAN_TIMEOUT ) { if ( $gmworker -> returnCode () == GEARMAN_TIMEOUT ) { # Normally one would want to do something ... useful here ... echo "Timeout. Waiting for next job...\n" ; continue; } if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } echo "Done\n" ; function r ...
https://man.mtool.work/php/8.3/gearmanworker.settimeout.html
GearmanWorker::wait — Wait for activity from one of the job servers | PHP 8.3 9319
GearmanWorker::wait (PECL gearman >= 0.6.0) GearmanWorker::wait — Wait for activity from one of the job servers 説明 public function GearmanWorker::wait (): bool Causes the worker to wait for activity from one of the Gearman job servers whe ... unction $worker -> addFunction ( 'reverse' , 'reverse_fn' ); # Try to grab a job while (@ $worker -> work () || $worker -> returnCode () == GEARMAN_IO_WAIT || $worker -> returnCode () == GEARMAN_NO_JOBS ) { if ( $worker -> returnCode () == GEARMAN_SUCCESS ... ) continue; echo "Waiting for next job...\n" ; if (!@ $worker -> wait ()) { if ( $worker -> returnCode () == GEARMAN_NO_ACTIVE_FDS ) { # We are not connected to any servers, so wait a bit before # trying to reconnect. sleep ( ...
https://man.mtool.work/php/8.3/gearmanworker.wait.html
Basic usage | PHP 8.3 9217
Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worker reverses the string and sends it back. The job is performed synchronously. <?php ... sult = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return packets and errors. switch( $gmclient -> returnCode ()) { case GEARMAN_WORK_DATA : echo "Data: $result \n" ; break; case GEARMAN_WORK_STATUS : list( $numerator , $denominator ... : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : echo "Success: $result \n" ; break; default: echo "RET: " . $gmclient -> returnCode () . "\n" ; exit; } } while( $gmclient -> returnCode () != GEARMAN_SUCCESS ); ?> <?php echo "Starting\n" ; # Create our wo ... addFunction ( "reverse" , "reverse_fn" ); print "Waiting for job...\n" ; while( $gmworker -> work ()) { if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker -> returnCode () . "\n" ; break; } } function reverse_fn ( $job ...
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
定義済み定数 | PHP 8.3 8541
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Return values. Always check GearmanClient::error() or GearmanWorker() for a s ... omething went wrong in the Gearman server and it could not handle the request gracefully. GEARMAN_WORK_DATA ( int ) Notice return code obtained with GearmanClient::returnCode() when using GearmanClient::do() . Sent to update the client with data from a run ... t needs to send updates, send partial results, or flush data during long running jobs. GEARMAN_WORK_WARNING ( int ) Notice return code obtained with GearmanClient::returnCode() when using GearmanClient::do() . Updates the client with a warning. The behavio ... GEARMAN_WORK_DATA , but should be treated as a warning instead of normal response data. GEARMAN_WORK_STATUS ( int ) Notice return code obtained with GearmanClient::returnCode() when using GearmanClient::do() . Sent to update the status of a long running jo ...
https://man.mtool.work/php/8.3/gearman.constants.html
PREV 1 2 3 NEXT