« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for consumed (0.001 sec.)
php_user_filter::filter — フィルタを適用するときにコールされる | PHP 8.3 13337
php_user_filter::filter (PHP 5, PHP 7, PHP 8) php_user_filter::filter — フィルタを適用するときにコールされる 説明 public function php_user_filter::filter ( resource $in , resource $out , int &$consumed , bool $closing ): int このメソッドがコ ... トに、フィルタ対象のデータが含まれます。 out out はもう一つの バケット群 を指すリソースで、 変更した内容をここに保存します。 consumed consumed は常に参照渡しとする必要があります。 フィルタで読み込んだり変更したりしたデータの長さをここで加算します。 大半の場 ... 合、各 $bucket 上で $bucket->datalen をコールするたびに consumed を増やすことになります。 closing ストリームが終了処理の最中である場合 (つまり、フィルタチェインの最後の処理を行っている場合 ...
https://man.mtool.work/php/8.3/php-user-filter.filter.html
stream_filter_register — ユーザー定義のストリームフィルタを登録する | PHP 8.3 11102
stream_filter_register (PHP 5, PHP 7, PHP 8) stream_filter_register — ユーザー定義のストリームフィルタを登録する 説明 function stream_filter_register ( string $filter_name , string $class ): bool stream_filter_register() は、 fopen() や fre ... 。 <?php /* フィルタクラスを定義する */ class strtoupper_filter extends php_user_filter { function filter ( $in , $out , & $consumed , $closing ) { while ( $bucket = stream_bucket_make_writeable ( $in )) { $bucket -> data = strtoupper ( $bucket -> data ); ... $consumed += $bucket -> datalen ; stream_bucket_append ( $out , $bucket ); } return PSFS_PASS_ON ; } } /* PHP にフィルタを登録する * ... /* フィルタクラスを定義する */ class string_filter extends php_user_filter { var $mode ; function filter ( $in , $out , & $consumed , $closing ) { while ( $bucket = stream_bucket_make_writeable ( $in )) { if ( $this -> mode == 1 ) { $bucket -> data = str ...
https://man.mtool.work/php/8.3/function.stream-filter-register.html
stream_bucket_prepend — bucket を brigade の先頭に追加する | PHP 8.3 10099
stream_bucket_prepend (PHP 5, PHP 7, PHP 8) stream_bucket_prepend — bucket を brigade の先頭に追加する 説明 function stream_bucket_prepend ( resource $brigade , StreamBucket $bucket ): void この関数を呼ぶと、bucket brigade の先頭に bucket を ... t_prepend() の例 <?php class foo extends php_user_filter { protected $calls = 0 ; public function filter ( $in , $out , & $consumed , $closing ) { while ( $bucket = stream_bucket_make_writeable ( $in )) { $consumed += $bucket -> datalen ; if ( $this -> c ...
https://man.mtool.work/php/8.3/function.stream-bucket-prepend.html
sqlsrv_cancel — Cancels a statement | PHP 8.3 9888
sqlsrv_cancel (No version information available, might only be in Git) sqlsrv_cancel — Cancels a statement 説明 function sqlsrv_cancel ( resource $stmt ): bool Cancels a statement. Any results associated with the statement that have not bee ... n consumed are deleted. After sqlsrv_cancel() has been called, the specified statement can be re-executed if it was created with sqls ... rv_prepare() . Calling sqlsrv_cancel() is not necessary if all the results associated with the statement have been consumed. パラメータ stmt The statement resource to be cancelled. 戻り値 成功した場合に true を、失敗した場合に false を返します。 ...
https://man.mtool.work/php/8.3/function.sqlsrv-cancel.html
php_user_filter クラス | PHP 8.3 8269
php_user_filter クラス (PHP 5, PHP 7, PHP 8) はじめに このクラスの子クラスを stream_filter_register() に渡します。 子クラスの __construct メソッドは呼び出されないので注意して下さい: 初期化については、 php_user_filter::onCreate() を変わりに使 ... ms = "" ; public ? resource $ stream = null ; /* メソッド */ public function filter ( resource $in , resource $out , int &$consumed , bool $closing ): int public function onClose (): void public function onCreate (): bool } プロパティ filtername stream_f ...
https://man.mtool.work/php/8.3/class.php-user-filter.html
MongoDB\BSON\PackedArray::toRelaxedExtendedJSON — Returns the Relaxed Extended ... 8269
MongoDB\BSON\PackedArray::toRelaxedExtendedJSON (mongodb >=1.20.0) MongoDB\BSON\PackedArray::toRelaxedExtendedJSON — Returns the Relaxed Extended JSON representation of the BSON array 説明 final public function MongoDB\BSON\PackedArray::toR ... ers use of JSON type primitives at the expense of type fidelity and is most suited for producing output that can be easily consumed by web APIs and humans. パラメータ この関数にはパラメータはありません。 戻り値 Returns a string containing the » Relaxed E ...
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.torelaxedextendedjson.ht...
SimpleXMLElement::key — 現在のキーを返す | PHP 8.3 8076
SimpleXMLElement::key (PHP 8) SimpleXMLElement::key — 現在のキーを返す 説明 public function SimpleXMLElement::key (): string 警告 PHP 8.0 より前のバージョンでは、 SimpleXMLElement::key() はサブクラスの SimpleXMLIterator でのみ宣言されていま ... に巻き戻します echo var_dump ( $xmlElement -> key ()); ?> 上の例の出力は以下となります。 Iterator not initialized or already consumed string(4) "book" ...
https://man.mtool.work/php/8.3/simplexmlelement.key.html
Yet Another RPC Framework | PHP 8.3 7865
Yet Another RPC Framework はじめに Yar (Yet another RPC framework) is a light, concurrent RPC framework which aims to provide a simple and easy way to do communication between PHP applications. It can also issue multiple calls to remote ser ... k , msgpack ), so no extra packages or proxy processes are required. The protocol is language agnostic, so services can be consumed by any language; see The Yar Protocol for the details. The Yar Protocol インストール/設定 要件 インストール手順 実行時設定 ...
https://man.mtool.work/php/8.3/book.yar.html
暗号化フィルタ | PHP 8.3 7865
暗号化フィルタ 暗号化フィルタは、ファイル/ストリーム を暗号化する場合に特に有用です。 mcrypt.* と mdecrypt.* 警告 この機能は PHP 7.1.0 で 非推奨 になります。この機能に頼らないことを強く推奨します。 mcrypt.* と mdecrypt.* は、libmcrypt を用い ... raw = true ); } } class FileSkip32Bytes extends php_user_filter { private $skipped = 0 ; function filter ( $in , $out , & $consumed , $closing ) { while ( $bucket = stream_bucket_make_writeable ( $in )) { $outlen = $bucket -> datalen ; if ( $this -> skip ... substr ( $bucket -> data , $outlen ); $bucket -> datalen = $bucket -> datalen - $outlen ; $this -> skipped += $outlen ; } $consumed += $outlen ; stream_bucket_append ( $out , $bucket ); } return PSFS_PASS_ON ; } } class AES_128_CBC extends AES_CBC { prot ...
https://man.mtool.work/php/8.3/filters.encryption.html
pcntl_waitid — 子プロセスの状態変化を待つ | PHP 8.3 7865
pcntl_waitid (PHP 8 >= 8.4.0) pcntl_waitid — 子プロセスの状態変化を待つ 説明 function pcntl_waitid ( int $idtype = P_ALL , ? int $id = null , array &$info = [] , int $flags = WEXITED , array &$resource_usage = [] ): bool 呼び出し元の子プロセ ... Signal code status : Exit value or signal pid : Sending process ID uid : Real user ID of sending process utime : User time consumed stime : System time consumed flags flags は、以下の定数を0個以上 OR で結んだ値です。 flags に設定できる値 WCONTINUED 以下に ...
https://man.mtool.work/php/8.3/function.pcntl-waitid.html
PREV 1 2 NEXT