Home Menu

__halt_compiler

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

<?

$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'

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms