Home > PHP > Function > bcompiler > bcompiler_write_functions_from_file()

bcompiler_write_functions_from_file()

bcompiler_write_functions_from_file - Writes all functions defined in a file as bytecodes

Syntax

bool bcompiler_write_functions_from_file (resource $filehandle, string $fileName)

Arguments

  • filehandle - A file handle as returned by fopen().
  • fileName - The file to be compiled. You must always include or require the file you intend to compile.

Description

Searches for all functions declared in the given file, and writes their correspondent bytecodes to the open file handle.

Version

PHP PECL bcompiler >= 0.5

Return value

Returns TRUE on success or FALSE on failure.