<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.bcompiler-read" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>bcompiler_read</refname> <refpurpose>Reads and creates classes from a filehandle</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>bcompiler_read</methodname> <methodparam><type>resource</type><parameter>filehandle</parameter></methodparam> </methodsynopsis> <para> Reads data from a open file handle and creates classes from the bytecodes. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>filehandle</parameter></term> <listitem> <para> A file handle as returned by <function>fopen</function>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>bcompiler_read</function> example</title> <programlisting role="php"> <![CDATA[ <?php $fh = fopen("/tmp/example","r"); bcompiler_read($fh); fclose($fh); print_r(get_defined_classes()); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; &warn.experimental.func; <note> <para> Please use include or require statements to parse bytecodes, it's more portable and convenient way than using this function. </para> <para> Please note that this function won't execute script body code contained in the bytecode file. </para> </note> </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:"~/.phpdoc/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 -->