PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

highlight_file> <get_browser
Last updated: Fri, 11 Apr 2008

view this page in

__halt_compiler

(No version information available, might be only in CVS)

__halt_compiler — Detiene la ejecución del compilador

Descripción

void __halt_compiler ( void )

Detiene la ejecución del compilador. Esto puede ser útil para embeber datos en scripts PHP, como ocurre con los archivos de instalación.

La posición del byte al comienzo de los datos puede ser determinada por la constante __COMPILER_HALT_OFFSET__, la cual es definida únicamente si hay una función __halt_compiler() presente en el archivo.

Valores retornados

No value is returned.

Ejemplos

Example #1 Un ejemplo de __halt_compiler()

<?php

// abrir este archivo
$aa fopen(__FILE__'r');

// acomodar el apuntador de archivo a los datos
fseek($aa__COMPILER_HALT_OFFSET__);

// e imprimir
var_dump(stream_get_contents($aa));

// final de ejecución del script
__halt_compiler();los datos de instalación (p.ejtargzPHPetc.)

Notes

Note: __halt_compiler() solo puede usarse desde el contexto más externo.



add a note add a note User Contributed Notes
__halt_compiler
zsh
12-Oct-2007 01:11
__halt_compiler() is a language construct and therefore cannot be used as a variable function.

Also, it cannot be used in eval() -- it won't throw a syntax error, but it won't do anything either.

highlight_file> <get_browser
Last updated: Fri, 11 Apr 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites