(PHP 5 >= 5.1.0, PHP 7)
__halt_compiler — 锟叫断憋拷锟斤拷锟斤拷锟斤拷执锟斤拷
锟叫断憋拷锟斤拷锟斤拷锟斤拷执锟叫★拷锟斤拷锟斤拷锟斤拷锟斤拷PHP锟脚憋拷锟斤拷嵌锟斤拷锟斤拷锟捷o拷锟斤拷锟斤拷锟节帮拷装锟侥硷拷锟斤拷
锟斤拷锟斤拷通锟斤拷锟斤拷锟斤拷 __COMPILER_HALT_OFFSET__
锟斤拷取锟斤拷锟捷匡拷始锟街斤拷锟斤拷锟节碉拷位锟矫o拷锟揭该筹拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷使锟斤拷锟斤拷__halt_compiler锟斤拷锟侥硷拷锟斤拷
没锟叫凤拷锟斤拷值锟斤拷
Example #1 __halt_compiler() 锟斤拷锟斤拷
<?php
// open this file
$fp = fopen(__FILE__, 'r');
// seek file pointer to data
fseek($fp, __COMPILER_HALT_OFFSET__);
// and output it
var_dump(stream_get_contents($fp));
// the end of the script execution
__halt_compiler(); the installation data (eg. tar, gz, PHP, etc.)
Note:
__halt_compiler() 锟斤拷锟杰癸拷锟斤拷锟斤拷锟斤拷锟绞癸拷谩锟�