static function compileFile($srcfile,$dstfile){
if($srcfile == $dstfile) return false;
if($srcfile == __FILE__){
echo 'pass self'.PHP_EOL;
return false;
}
$fh = fopen($dstfile, "w");
bcompiler_write_header($fh);
bcompiler_write_file($fh, $srcfile);
bcompiler_write_footer($fh);
fclose($fh);
return true;
}
转载于:https://my.oschina.net/anthonychen/blog/151711