bcompiler_write_function

(PECL bcompiler >= 0.5) Writes a defined function as bytecodes bool bcompiler_write_function ( resource $filehandle, string $functionName ) Reads the bytecodes from PHP for an existing function, and writes them to the open file handle. Order is not important, (eg. if function b uses function a, and you compile it like the example below, it will work perfectly OK). Parameters: fileh

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_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)

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

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_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.

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.

apd_set_pprof_trace

(PECL apd >= 0.2) Starts the session debugging string apd_set_pprof_trace ([ string $dump_directory = ini_get("apd.dumpdir") [, string $fragment = "pprof" ]] ) Starts debugging to pprof_{process_id} in the dump directory. Parameters: dump_directory The directory in which the profile dump file is written. If not set, the apd.dumpdir setting from the php.ini file is us

apd_set_session_trace

(PECL apd 0.2-0.4) Starts the session debugging void apd_set_session_trace ( int $debug_level [, string $dump_directory = ini_get("apd.dumpdir") ] ) Starts debugging to apd_dump_{process_id} in the dump directory. 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 d

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