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

search for in the

bcompiler_write_exe_footer> <bcompiler_write_class
[edit] Last updated: Fri, 25 May 2012

view this page in

bcompiler_write_constant

(PECL bcompiler >= 0.5)

bcompiler_write_constant定義した定数をバイトコードとして書き込む

説明

bool bcompiler_write_constant ( resource $filehandle , string $constantName )

この関数は、PHP から既存の定数をバイトコードとして読み込み、 開かれているファイルハンドルに書き込みます。

パラメータ

filehandle

fopen() が返すファイルハンドル。

constantName

定義済みの定数名を表す文字列。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 bcompiler_write_constant() の例

<?php
define
("MODULE_MAX"30);

$fh fopen("/tmp/example","w");
bcompiler_write_header($fh);
bcompiler_write_constant($fh,"MODULE_MAX");
bcompiler_write_footer($fh);
fclose($fh);

?>

注意

警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

参考



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

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