Results of 1 - 10 of about 80 for work (0.003 sec.)
- Creative Commons Attribution 3.0 | PHP 8.3 16547
- Creative Commons Attribution 3.0 THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHE
... R THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED ... IGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 1. Definitions "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, ar ... rangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, t ...
-
https://man.mtool.work/php/8.3/cc.license.html
- Worker::stack — Stacking work | PHP 8.3 11013
- Worker::stack (PECL pthreads >= 2.0.0) Worker::stack — Stacking work 説明 public function Worker::stack ( Threaded &$work ): int Appends the new work to the stack of the referenced worker. パラメータ work A Threaded object to be executed by
... the worker. 戻り値 The new size of the stack. 例 例1 Stacking a task for execution onto a worker <?php $worker = new Worker (); $wo ... rk = new class extends Threaded {}; var_dump ( $worker -> stack ( $work )); 上の例の出力は以下となります。 int(1) 他のマニュアルの関連ページ Python library Docker docker stack ...
-
https://man.mtool.work/php/8.3/worker.stack.html
- GearmanWorker::work — Wait for and perform jobs | PHP 8.3 10191
- GearmanWorker::work (PECL gearman >= 0.5.0) GearmanWorker::work — Wait for and perform jobs 説明 public function GearmanWorker::work (): bool Waits for a job to be assigned and then calls the appropriate callback function. Issues an E_WARNI
... NG with the last Gearman error if the return code is not one of GEARMAN_SUCCESS , GEARMAN_IO_WAIT , or GEARMAN_WORK_FAIL . パラメータ この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 ... 例1 GearmanWorker::work() example <?php # create the worker $worker = new GearmanWorker (); # add the default job server (localhost) $work ... er -> addServer (); # add the reverse function $worker -> addFunction ( "reverse" , "my_reverse_function" ); # start te worker listening for job submissions while ( $worker -> ...
-
https://man.mtool.work/php/8.3/gearmanworker.work.html
- bzcompress — 文字列をbzip2形式のデータに圧縮する | PHP 8.3 8629
- bzcompress (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) bzcompress — 文字列をbzip2形式のデータに圧縮する 説明 function bzcompress ( string $data , int $block_size = 4 , int $work_factor = 0 ): string | int bzcompress() は、与えられた文字列を圧縮し
... ック長を指定します。 1 から 9 の数とする必要があります。この場合、9 の圧縮度が最大ですが、リソースの消費量も最大となります。 work_factor 繰り返しが多い、最悪の入力データの場合の圧縮処理の動作を制御します。 この値は、0 から 250 までとなり、0 は特別な場合 ... です。 work_factor によらず、 生成される出力は同じになります。 戻り値 圧縮された文字列、もしくはエラー時はエラー数 エラー / 例外 PHP 8 ... .5.0 以降では、 block_size が 1 から 9 の間にない場合、 あるいは work_factor が 0 から 250 の間にない場合に、 ValueError がスローされます。 変更履歴 バージョン 説明 8.5.0 block_size が 1 から ...
-
https://man.mtool.work/php/8.3/function.bzcompress.html
- 定義済み定数 | PHP 8.3 8629
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Return values. Always check GearmanClient::error() or GearmanWorker() for a s
... ode, an event is hit that would have blocked. GEARMAN_ERRNO ( int ) A system error. Check GearmanClient::errno() or GearmanWorker::errno() for the system error code that was returned. GEARMAN_NO_ACTIVE_FDS ( int ) GearmanClient::wait() or GearmanWork ... no connections. GEARMAN_UNEXPECTED_PACKET ( int ) Indicates something going very wrong in gearmand. Applies only to GearmanWorker . GEARMAN_GETADDRINFO ( int ) DNS resolution failed (invalid host, port, etc). GEARMAN_NO_SERVERS ( int ) Did not call G ... AN_SERVER_ERROR ( int ) Something 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 ...
-
https://man.mtool.work/php/8.3/gearman.constants.html
- Worker::unstack — Unstacking work | PHP 8.3 8150
- Worker::unstack (PECL pthreads >= 2.0.0) Worker::unstack — Unstacking work 説明 public function Worker::unstack (): int Removes the first task (the oldest one) in the stack. パラメータ この関数にはパラメータはありません。 戻り値 The new siz
... k to unstack has been removed. Now, only the first task in the stack is removed. 例 例1 Removing objects from the stack of Workers <?php $my = new Worker (); $work = new class extends Threaded {}; var_dump ( $my -> stack ( $work )); var_dump ( $my -> ...
-
https://man.mtool.work/php/8.3/worker.unstack.html
- Basic usage | PHP 8.3 7753
- 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
... "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 )= $gmclient -> doStatu ... s (); echo "Status: $numerator / $denominator complete\n" ; break; case GEARMAN_WORK_FAIL : echo "Failed\n" ; exit; case GEARMAN_SUCCESS : echo "Success: $result \n" ; break; default: echo "RET: " . $gmclien ... de () . "\n" ; exit; } } while( $gmclient -> returnCode () != GEARMAN_SUCCESS ); ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register functi ...
-
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
- GearmanClient::do — Run a single task and return a result [deprecated] | PHP 8.... 7753
- 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
... as of pecl/gearman 1.0.0. Use GearmanClient::doNormal() . パラメータ function_name ワーカーが実行するために登録した関数。 workload シリアライズしたデータ。 unique タスクを特定するために用いる一意な ID。 戻り値 A string representing the results of ru ... t = $gmclient -> doNormal ( "reverse" , "Hello!" ); echo "Success: $result \n" ; ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register functi ... on "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFunction ( "reverse" , "reverse_fn" ...
-
https://man.mtool.work/php/8.3/gearmanclient.do.html
- GearmanClient::doNormal — Run a single task and return a result | PHP 8.3 7753
- 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 $
... l ): string Runs a single task and returns a string representation of the result. It is up to the GearmanClient and GearmanWorker to agree on the format of the result. パラメータ function ワーカーが実行するために登録した関数。 workload シリアライズし ... t = $gmclient -> doNormal ( "reverse" , "Hello!" ); echo "Success: $result \n" ; ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register functi ... on "reverse" with the server. Change the worker function to # "reverse_fn_fast" for a faster worker with no output. $gmworker -> addFunction ( "reverse" , "reverse_fn" ...
-
https://man.mtool.work/php/8.3/gearmanclient.donormal.html
- Worker クラス | PHP 8.3 7574
- Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません
... 。 Worker がスコープから外れる (どこからも参照されなくなる) プログラマーが shutdown を呼ぶ スクリプトが終了する つまり、プログラマ ... ーは実行中のコンテキストを再利用できるということです。 オブジェクトを Worker のスタックに置くと、そのオブジェクトの run メソッドを Worker が実行します。 クラス概要 class Worker extends Thread imple ... etStacked (): int public function isShutdown (): bool public function shutdown (): bool public function stack ( Threaded &$work ): int public function unstack (): int /* 継承したメソッド */ public function Thread::getCreatorId (): int public static f ...
-
https://man.mtool.work/php/8.3/class.worker.html