1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-26 08:22:08 +01:00
Files
archived-doc-es/reference/parsekit/functions/parsekit-compile-file.xml
Pedro Antonio Gil Rodríguez 109fd8c4da Actualización a la última versión
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@334920 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-21 10:16:54 +00:00

124 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dfd913a054ce5301220bec9b8d400ae462ae3564 Maintainer: seros Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.parsekit-compile-file" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>parsekit_compile_file</refname>
<refpurpose>Compilar un fichero de PHP y devolver el array op resultante</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>parsekit_compile_file</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter role="reference">errors</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>PARSEKIT_QUIET</initializer></methodparam>
</methodsynopsis>
&warn.experimental.func;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
<para>
Una cadena que contiene el nombre del fichero a compilar.
Similar al argumento pasado a <function>include</function>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>errors</parameter></term>
<listitem>
<para>
Un hash 2D de errores (incluyendo errores fatales) encontrados durante la compilación.
Devuelto por referencia.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>options</parameter></term>
<listitem>
<para>
O <constant>PARSEKIT_QUIET</constant> o
<constant>PARSEKIT_SIMPLE</constant>. Para producir varios
grados de verbosidad en la salida devuelta.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Devuelve una estructura de array multicapa compleja como está detallado abajo.
</para>
</refsect1>
<!-- No changelog: it's only in PECL. -->
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Ejemplo de <function>parsekit_compile_file</function></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump(parsekit_compile_file('hello_world.php', $errors, PARSEKIT_SIMPLE));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(5) {
[0]=>
string(37) "ZEND_ECHO UNUSED 'Hello World' UNUSED"
[1]=>
string(30) "ZEND_RETURN UNUSED NULL UNUSED"
[2]=>
string(42) "ZEND_HANDLE_EXCEPTION UNUSED UNUSED UNUSED"
["function_table"]=>
NULL
["class_table"]=>
NULL
}
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>parsekit_compile_string</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:"~/.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
-->