mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-29 04:12:21 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@274475 c90b9560-bf6c-de11-be94-00142212c4b1
117 lines
3.0 KiB
XML
117 lines
3.0 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.11 $ -->
|
|
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="function.bcompiler-write-function" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>bcompiler_write_function</refname>
|
|
<refpurpose>Écrit une fonction définie sous forme de bytecode</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>bcompiler_write_function</methodname>
|
|
<methodparam><type>resource</type><parameter>filehandle</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>functionName</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Lit le bytecode d'une fonction existante depuis PHP et l'écrit dans le fichier désigné
|
|
par la ressource de fichier <parameter>filehandle</parameter>. L'ordre
|
|
n'est pas important (e.g. si la fonction <literal>b</literal> utilise la
|
|
fonction <literal>a</literal> et que vous compilez l'exemple ci-dessous,
|
|
cela fonctionnera très bien).
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>filehandle</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Une ressource de fichier retournée par la fonction
|
|
<function>fopen</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>functionName</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le nom de la fonction, sous la forme d'une &string;.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>bcompiler_write_function</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?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);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
&warn.experimental.func;
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>bcompiler_write_header</function></member>
|
|
<member><function>bcompiler_write_footer</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
--> |