文字

PHP 字节码编译器

  • 简介
  • 安装/配置
    • 需求
    • 安装
    • 运行时配置
    • 资源类型
  • 预定义常量
  • bcompiler 函数
    • bcompiler_load_exe — 从一个 bcompiler exe 文件中读取并创建类
    • bcompiler_load — 从一个 bz 压缩过的文件中读取并创建类
    • bcompiler_parse_class — 读取一个类的字节码并回调一个用户的函数
    • bcompiler_read — 从一个文件句柄中读取并创建类
    • bcompiler_write_class — 写入定义过的类的字节码
    • bcompiler_write_constant — 写入定义过的常量的字节码
    • bcompiler_write_exe_footer — 写入开始位置以及 exe 类型文件的结尾信号
    • bcompiler_write_file — 写入 PHP 源码文件的字节码
    • bcompiler_write_footer — 写入单个字符 \x00 用于标识编译数据的结尾
    • bcompiler_write_function — 以字节码写入定义过的函数
    • bcompiler_write_functions_from_file — 以字节码写入一个文件中定义过的所以函数
    • bcompiler_write_header — 写入 bcompiler 头
    • bcompiler_write_included_filename — 写入一个包含的文件的字节码

用户评论:

[#1] rustushki [2010-12-29 10:05:00]

It looks like as of bcompiler 0.9.3 geoff's code above works correctly with the output:

static
construct
testOut

上一篇: 下一篇: