__halt_compiler
Description
The __halt_compiler of Miscellaneous for PHP halts the compiler execution.
The __halt_compiler of Miscellaneous for PHP 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'