__halt_compiler
Description
The __halt_compiler of Miscellaneous for PHP 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
Return
No value is returned.
Examples
1 · void
<?
$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'