downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

apc_bin_loadfile> <apc_bin_dumpfile
[edit] Last updated: Fri, 25 May 2012

view this page in

apc_bin_load

(PECL apc >= 3.1.4)

apc_bin_loadバイナリダンプを APC のファイル/ユーザーキャッシュに読み込む

説明

bool apc_bin_load ( string $data [, int $flags = 0 ] )

指定したバイナリダンプを APC のファイル/ユーザーキャッシュに読み込みます。

パラメータ

data

読み込むバイナリダンプ。通常は apc_bin_dump() で出力したもの。

flags

APC_BIN_VERIFY_CRC32APC_BIN_VERIFY_MD5 あるいはその両方。

返り値

バイナリダンプの読み込みに成功した場合に TRUE、 それ以外の場合に FALSE を返します。FALSE が返される理由には、 APC が有効でない場合や data が有効な APC バイナリダンプでない (予期せぬサイズなど) 場合などがあります。

例1 apc_bin_load() の例

<?php
$data 
apc_bin_dump(NULLNULL);
apc_bin_load($dataAPC_BIN_VERIFY_MD5 APC_BIN_VERIFY_CRC32);
?>

参考

  • apc_bin_dump() - 指定したファイルおよびユーザー変数のバイナリダンプを取得する
  • apc_bin_loadfile() - バイナリダンプをファイルから APC のファイル/ユーザーキャッシュに読み込む


add a note add a note User Contributed Notes apc_bin_load
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites