(PECL bcompiler >= 0.4)
bcompiler_read — Reads and creates classes from a filehandle
Reads data from a open file handle and creates classes from the bytecodes.
成功时返回 TRUE, 或者在失败时返回 FALSE.
Example #1 bcompiler_read() example
<?php
$fh = fopen("/tmp/example","r");
bcompiler_read($fh);
fclose($fh);
print_r(get_defined_classes());
?>
此函数是实验性的。 此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本扩展风险自担 。
Note:
Please use include or require statements to parse bytecodes, it's more portable and convenient way than using this function.
Please note that this function won't execute script body code contained in the bytecode file.