PHP: bcompiler_write_function - Manual

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

search for in the

bcompiler_write_functions_from_file bcompiler_write_footer

Last updated: Sat, 27 Jan 2007

view this page in

# bcompiler_write_function

(PECL)

bcompiler_write_function -- Writes an defined function as bytecodes

## Description

bool bcompiler_write_function ( resource filehandle, string functionName )

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

This reads the bytecodes from PHP for an existing function, and writes them to the open file handle. Order is not important, (eg. if function b uses function a, and you compile it like the example below, it will work perfectly OK).

Пример 1. bcompiler_write_function() example

`<?php
$fh = fopen("/tmp/example","w");
bcompiler_write_header($fh);
bcompiler_write_function($fh,"my_function_a");
bcompiler_write_function($fh,"my_function_b");
bcompiler_write_footer($fh);
fclose($fh);
?>`

See also bcompiler_write_header(), and bcompiler_write_footer().

add a note User Contributed Notes
bcompiler_write_function
There are no user contributed notes for this page.
bcompiler_write_functions_from_file bcompiler_write_footer

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST