Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

__halt_compiler

Description

Halts the compiler execution

Byte position of the data start can be determined by the __COMPILER_HALT_OFFSET__ constant which is defined only if there is a __halt_compiler() presented in the file.

Syntax

__halt_compiler ( void ) : void

Return

No value is returned.

Examples

1

<?

$filename = __FILE__;
$mode = 'r';

$handle = fopen($filename, $mode);

    fseek($handle, __COMPILER_HALT_OFFSET__);

    $stream = stream_get_contents($handle);

    var_export($stream);

    __halt_compiler();embed data
'embed data'
HomeMenu