__halt_compilerとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > __halt_compilerの意味・解説 

__halt_compiler

(No version information available, might be only in CVS)
__halt_compiler — コンパイラの実行を中止する

説明

void __halt_compiler ( void )
この関数は、コンパイラの実行を中止します。これは、 インストレーションファイルのようなデータを PHP スクリプトに 埋め込んでいる場合に便利です。 データの開始位置(バイト値)は、定数 __COMPILER_HALT_OFFSET__ で定義されています。これは ファイル内で __halt_compiler() が使用されている場合にのみ 存在します。
注意: __halt_compiler() は、いちばん外側のスコープでのみ 使用可能です。

例 1257. __halt_compiler() の例
<?php

// このファイルをオープンする
$fp = fopen(__FILE__, 'r');

// データのある位置までファイルポインタを移動する
fseek($fp, __COMPILER_HALT_OFFSET__);

// それを出力する
var_dump(stream_get_contents($fp));

// ここでスクリプトの実行を終了する
__halt_compiler();インストールデータ(例: tar, gz, PHP, etc..)





英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「__halt_compiler」の関連用語

__halt_compilerのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



__halt_compilerのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS