cvs: phpdoc-es /reference/bcompiler reference.xml /reference/bcompiler/functions bcompiler-read.xml bcompiler-write-class.xml
bcompiler-write-constant.xml

From: Date: Sun, 18 Dec 2005 18:25:14 +0000
Subject: cvs: phpdoc-es /reference/bcompiler reference.xml /reference/bcompiler/functions bcompiler-read.xml bcompiler-write-class.xml
bcompiler-write-constant.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1293@lists.php.net to get a copy of this message
gustavo Sun Dec 18 18:25:14 2005 EDT Added files: /phpdoc-es/reference/bcompiler/functions bcompiler-write-class.xml bcompiler-read.xml bcompiler-write-constant.xml Modified files: /phpdoc-es/reference/bcompiler reference.xml Log: Adición de trabajo terminado. Correcciones a archivo enviado anteriormente.

http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/bcompiler/reference.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-es/reference/bcompiler/reference.xml diff -u phpdoc-es/reference/bcompiler/reference.xml:1.2 phpdoc-es/reference/bcompiler/reference.xml:1.3 --- phpdoc-es/reference/bcompiler/reference.xml:1.2 Sun Dec 18 17:44:48 2005 +++ phpdoc-es/reference/bcompiler/reference.xml Sun Dec 18 18:25:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- Purpose: basic.php --> <!-- Membership: pecl --> @@ -47,13 +47,13 @@ y <function>bcompiler_load</function>. Los archivos bytecode pueden estar escritos tanto descomprimidos, como en texto plano. La funci&oacute;n <function>bcompiler_load</function> lee un archivo - bytecode comprimido con bzip, lo cual suele ser 1/3 del tama&ntilde;o + bytecode comprimido con bzip, el cual suele ser 1/3 del tama&ntilde;o original del archivo. </para> <para> - Para crear archivos del tipo EXE, bcompiler tiene que ser usado con + Para crear archivos del tipo exe, bcompiler tiene que ser usado con un archivo sapi modificado o una versi&oacute;n de PHP que haya sido - compilada como una librer&iacute;a compartida. En este escemario, + compilada como una librer&iacute;a compartida. En este escenario, bcompiler lee el bytecode comprimido desde el final del archivo exe. </para> <para> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/bcompiler/functions/bcompiler-write-class.xml?view=markup&rev=1.1 Index: phpdoc-es/reference/bcompiler/functions/bcompiler-write-class.xml +++ phpdoc-es/reference/bcompiler/functions/bcompiler-write-class.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/bcompiler.xml, last change in rev 1.5 --> <refentry id="function.bcompiler-write-class"> <refnamediv> <refname>bcompiler_write_class</refname> <refpurpose>Escribe una clase determinada como bytecodes</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>bool</type><methodname>bcompiler_write_class</methodname> <methodparam><type>resource</type><parameter>gestor_archivo</parameter></methodparam> <methodparam><type>string</type><parameter>nombre_clase</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>extiende</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> Esta lee los bytecodes desde PHP para una clase existente, y los escribe al gestor de archivo abierto. No lleva a cabo una verificaci&oacute;n de dependencias, por lo que debe asegurarse de que escribe las clases en un orden en el que no resultar&aacute; como una 'clase indefinida' cuando la cargue. </para> <example> <title>Ejemplo de <function>bcompiler_write_class</function></title> <programlisting role="php"> <![CDATA[ <?php $fh = fopen("/tmp/example","w"); bcompiler_write_header($fh); bcompiler_write_class($fh,"DB"); // you must write DB_common before DB_mysql, as DB_mysql extends DB_common. bcompiler_write_class($fh,"DB_common"); bcompiler_write_class($fh,"DB_mysql"); bcompiler_write_footer($fh); fclose($fh); ?> ]]> </programlisting> </example> <para> V&eacute;ase tambi&eacute;n <function>bcompiler_write_header</function>, y <function>bcompiler_write_footer</function>. </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 --> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/bcompiler/functions/bcompiler-read.xml?view=markup&rev=1.1 Index: phpdoc-es/reference/bcompiler/functions/bcompiler-read.xml +++ phpdoc-es/reference/bcompiler/functions/bcompiler-read.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/bcompiler.xml, last change in rev 1.5 --> <refentry id="function.bcompiler-read"> <refnamediv> <refname>bcompiler_read</refname> <refpurpose>Lee y crea clases desde un gestor de archivo</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>bool</type><methodname>bcompiler_read</methodname> <methodparam><type>resource</type><parameter>gestor_archivo</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <note> <para> Por favor, use las sentencias include o require para analizar bytecodes, es m&aacute;s port&aacute;til y conveniente que usar esta funci&oacute;n. </para> </note> <para> Lee informaci&oacute;n desde un gestor de archivo abierto y crea clases desde los bytecodes. Por favor, tenga en cuenta que esta funci&oacute;n no ejecutar&aacute; el c&oacute;digo del script contenido en el archivo bytecode. </para> <example> <title>Ejemplo de <function>bcompiler_read</function></title> <programlisting role="php"> <![CDATA[ <?php $fh = fopen("/tmp/example","r"); bcompiler_read($fh); fclose($fh); print_r(get_defined_classes()); ?> ]]> </programlisting> </example> </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 --> http://cvs.php.net/viewcvs.cgi/phpdoc-es/reference/bcompiler/functions/bcompiler-write-constant.xml?view=markup&rev=1.1 Index: phpdoc-es/reference/bcompiler/functions/bcompiler-write-constant.xml +++ phpdoc-es/reference/bcompiler/functions/bcompiler-write-constant.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/bcompiler.xml, last change in rev 1.5 --> <refentry id="function.bcompiler-write-constant"> <refnamediv> <refname>bcompiler_write_constant</refname> <refpurpose>Lee una constante definida como bytecodes</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> <type>bool</type><methodname>bcompiler_write_constant</methodname> <methodparam><type>resource</type><parameter>gestor_archivo</parameter></methodparam> <methodparam><type>string</type><parameter>nombre_constante</parameter></methodparam> </methodsynopsis> &warn.experimental.func; <para> Esta funci&oacute;n lee los bytecodes desde PHP para una constante existente y los escribe al gestor de archivo abierto. </para> <example> <title>Ejemplo de <function>bcompiler_write_constant</function></title> <programlisting role="php"> <![CDATA[ <?php define("MODULE_MAX", 30); $fh = fopen("/tmp/example","w"); bcompiler_write_header($fh); bcompiler_write_constant($fh,"MODULE_MAX"); bcompiler_write_footer($fh); fclose($fh); ?> ]]> </programlisting> </example> <para> V&eacute;ase tambi&eacute;n <function>bcompiler_write_header</function>, y <function>bcompiler_write_footer</function>. </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 -->
« previous php.doc.es (#1293) next »