bcompiler_write_functions_from_file
bcompiler_write_functions_from_file — ファイル内で定義されているすべての関数を バイトコードとして書き込む
説明
bool bcompiler_write_functions_from_file ( resource filehandle, string fileName )警告 |
この関数は、
実験的 なものです。この関数の動作・
名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP
のリリースにおいて変更される可能性があります。
この関数は自己責任で使用してください。 |
この関数は、指定したファイル内で定義されているすべての関数を検索し、 対応するバイトコードを開かれているファイルハンドルに書き込みます。 コンパイルしたいファイルを include/require することを忘れないでください。
例 330. bcompiler_write_functions_from_file() の例
<?php
require('module.php');
$fh = fopen("/tmp/example","w");
bcompiler_write_header($fh);
bcompiler_write_functions_from_file($fh,'module.php');
bcompiler_write_footer($fh);
fclose($fh);
?>
bcompiler_write_header() および bcompiler_write_footer() も参照ください。
- bcompiler_write_functions_from_fileのページへのリンク