« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 7 of about 7 for ctor (0.001 sec.)
The Pool class | PHP 8.3 11977
The Pool class (PECL pthreads >= 2.0.0) はじめに A Pool is a container for, and controller of, an adjustable number of Workers. Pooling provides a higher level abstraction of the Worker functionality, including the management of references ... threads. クラス概要 class Pool { /* プロパティ */ protected $ size ; protected $ class ; protected $ workers ; protected $ ctor ; protected $ last ; /* メソッド */ public function __construct ( int $size , string $class = ? , array $ctor = ? ) public ... function collect ( Callable $collector = ? ): int public function resize ( int $size ): void public function shutdown (): void public function submit ( Threaded ... } プロパティ size maximum number of Workers this Pool can use class the class of the Worker workers references to Workers ctor the arguments for constructor of new Workers last offset in workers of the last Worker used 目次 Pool::collect — Collect r ...
https://man.mtool.work/php/8.3/class.pool.html
Pool::__construct — Creates a new Pool of Workers | PHP 8.3 11832
Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $class = ? , array $ctor = ? ) Construct a new pool of workers. Pools lazily create the ... rkers for this pool to create class The class for new Workers. If no class is given, then it defaults to the Worker class. ctor An array of arguments to be passed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker ... e":protected]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> NULL ["work":protected]=> NULL ["ctor":protected]=> array(1) { [0]=> object(Something)#2 (0) { } } ["last":protected]=> int(0) } 他のマニュアルの関連ページ Duck ...
https://man.mtool.work/php/8.3/pool.construct.html
Pool::submit — Submits an object for execution | PHP 8.3 8360
Pool::submit (PECL pthreads >= 2.0.0) Pool::submit — Submits an object for execution 説明 public function Pool::submit ( Threaded $task ): int Submit the task to the next Worker in the Pool パラメータ task The task for execution 戻り値 the ... ) { [0]=> object(MyWork)#3 (1) { ["worker"]=> object(MyWorker)#5 (1) { ["something"]=> object(Something)#6 (0) { } } } } ["ctor":protected]=> array(1) { [0]=> object(Something)#2 (0) { } } ["last":protected]=> int(1) } 他のマニュアルの関連ページ Linu ...
https://man.mtool.work/php/8.3/pool.submit.html
ReflectionClass::__toString — ReflectionClass オブジェクトの文字列表現を返す | ... 8233
ReflectionClass::__toString (PHP 5, PHP 7, PHP 8) ReflectionClass::__toString — ReflectionClass オブジェクトの文字列表現を返す 説明 public function ReflectionClass::__toString (): string ReflectionClass オブジェクトの文字列表現を返します。 ... rivate $previous ] } - Methods [10] { Method [ <internal:Core> final private method __clone ] { } Method [ <internal:Core, ctor> public method __construct ] { - Parameters [3] { Parameter #0 [ <optional> $message ] Parameter #1 [ <optional> $code ] P ...
https://man.mtool.work/php/8.3/reflectionclass.tostring.html
例 | PHP 8.3 7942
例 リフレクションのドキュメントの中には多くの例が示されています。 特に、各クラスの __construct のドキュメントを見るといいでしょう。 例1 シェル (ターミナル) からのリフレクションの例 $ php --rf strlen $ php --rc finfo $ php --re json $ php -- ... { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [4] { Method [ <internal:fileinfo, ctor> public method finfo ] { - Parameters [2] { Parameter #0 [ <optional> $options ] Parameter #1 [ <optional> $arg ] } } Meth ...
https://man.mtool.work/php/8.3/reflection.examples.html
ReflectionClass::__construct — ReflectionClass を作成する | PHP 8.3 7942
ReflectionClass::__construct (PHP 5, PHP 7, PHP 8) ReflectionClass::__construct — ReflectionClass を作成する 説明 public function ReflectionClass::__construct ( object | string $objectOrClass ) 新しい ReflectionClass オブジェクトを作成します ... 。 パラメータ objectOrClass 調べたいクラスのクラス名をあらわす文字列か、そのクラスのオブジェクト。 エラー / 例外 リフレクションするクラスが存在し ... 1] { Method [ <internal:Core> private method __clone ] { - Parameters [0] { } - Return [ void ] } Method [ <internal:Core, ctor> public method __construct ] { - Parameters [3] { Parameter #0 [ <optional> string $message = "" ] Parameter #1 [ <optiona ...
https://man.mtool.work/php/8.3/reflectionclass.construct.html
下位互換性のない変更点 | PHP 8.3 7252
下位互換性のない変更点 PHP コア クラスの別名に "array" と "callable" を使う class_alias() では、 クラスのエイリアス名として、 "array" と "callable" を指定できなくなりました。 比較できないオブジェクトと == で比較する 比較できないオブジェクト ... Bzip2 block_size に 1 から 9 の間以外の値を指定した場合、 bzcompress() は ValueError をスローするようになりました。 work_factor に 0 から 250 の間以外の値を指定した場合、 bzcompress() は ValueError をスローするようになりました。 DOM DOMNamedNodeMap , ... ING が発生するようになりました。 コンストラクタ引数に変数をリファレンス渡しするには、 配列の値にリファレンスを代入します: $ctor_args = [&$valByRef] PDOStatement::fetch() , PDOStatement::fetchObject() , PDOStatement::fetchAll() の呼び出し中に、 PDOSta ...
https://man.mtool.work/php/8.3/migration85.incompatible.html
PREV 1 NEXT