(PECL bcompiler >= 0.4)
bcompiler_load — Reads and creates classes from a bz compressed file
Reads data from a bzcompressed file and creates classes from the bytecodes.
The bzcompressed file path, as a string.
成功时返回 TRUE, 或者在失败时返回 FALSE.
Example #1 bcompiler_load() example
<?php
bcompiler_load("/tmp/example");
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.