bcompiler_write_exe_footer

(PECL bcompiler >= 0.4) Writes the start pos, and sig to the end of a exe type file bool bcompiler_write_exe_footer ( resource $filehandle, int $startpos ) An EXE (or self executable) file consists of 3 parts: The stub (executable code, e.g. a compiled C program) that loads PHP interpreter, bcompiler extension, stored Bytecodes and initiates a call for the specified function (e.g. main) or class method (e.g. main::main)

bcompiler_write_constant

(PECL bcompiler >= 0.5) Writes a defined constant as bytecodes bool bcompiler_write_constant ( resource $filehandle, string $constantName ) Reads the bytecodes from PHP for an existing constant, and writes them to the open file handle. Parameters: filehandle A file handle as returned by fopen(). constantName The name of the defined c

bcompiler_write_class

(PECL bcompiler >= 0.4) Writes a defined class as bytecodes bool bcompiler_write_class ( resource $filehandle, string $className [, string $extends ] ) Reads the bytecodes from PHP for an existing class, and writes them to the open file handle. Parameters: filehandle A file handle as returned by fopen(). className The class name, as

bcompiler_read

(PECL bcompiler >= 0.4) Reads and creates classes from a filehandle bool bcompiler_read ( resource $filehandle ) Reads data from a open file handle and creates classes from the bytecodes. Parameters: filehandle A file handle as returned by fopen(). Returns: Returns TRUE on success or FALSE on failure. Notes

bcompiler_parse_class

(PECL bcompiler >= 0.4) Reads the bytecodes of a class and calls back to a user function bool bcompiler_parse_class ( string $class, string $callback ) Reads the bytecodes of a class and calls back to a user function. Parameters: class The class name, as a string. callback The class name, as a string. Returns:

bcompiler_load

(PECL bcompiler >= 0.4) Reads and creates classes from a bz compressed file bool bcompiler_load ( string $filename ) Reads data from a bzcompressed file and creates classes from the bytecodes. Parameters: filename The bzcompressed file path, as a string. Returns: Returns TRUE on success or FALSE on failure.

bcompiler_load_exe

(PECL bcompiler >= 0.4) Reads and creates classes from a bcompiler exe file bool bcompiler_load_exe ( string $filename ) Reads data from a bcompiler exe file and creates classes from the bytecodes. Parameters: filename The exe file path, as a string. Returns: Returns TRUE on success or FALSE on failure.

rename_function

(PECL apd >= 0.2) Renames orig_name to new_name in the global function table bool rename_function ( string $original_name, string $new_name ) Renames a orig_name to new_name in the global function table. Useful for temporarily overriding built-in functions. Parameters: original_name The original function name. new_name The new name f

override_function

(PECL apd >= 0.2) Overrides built-in functions bool override_function ( string $function_name, string $function_args, string $function_code ) Overrides built-in functions by replacing them in the symbol table. Parameters: function_name The function to override. function_args The function arguments, as a comma separated string. Usua

apd_set_session

(PECL apd 0.2-0.4) Changes or sets the current debugging level void apd_set_session ( int $debug_level ) This can be used to increase or decrease debugging in a different area of your application. Parameters: debug_level An integer which is formed by adding together the XXX_TRACE constants. It is not recommended to use MEMORY_TRACE. It is very slow and does not appear to