cvs: phpdoc-es /reference/apd/functions apd-breakpoint.xml apd-callstack.xml apd-clunk.xml apd-continue.xml apd-croak.xml apd-dump-function-table.xml
apd-dump-persistent-resources.xml apd-dump-regular-resources.xml apd-echo.xml apd-get-active-symbols.xml apd-set-pprof-trace.xml
apd-set-session-trace.xml apd-set-session.xml apd-set-socket-session-trace.xml override-function.xml rename-function.xml
| From: | Leonardo Boshell | Date: | Sat, 23 Jul 2005 16:14:07 +0000 |
| Subject: | cvs: phpdoc-es /reference/apd/functions apd-breakpoint.xml apd-callstack.xml apd-clunk.xml apd-continue.xml apd-croak.xml apd-dump-function-table.xml apd-dump-persistent-resources.xml apd-dump-regular-resources.xml apd-echo.xml apd-get-active-symbols.xml apd-set-pprof-trace.xml apd-set-session-trace.xml apd-set-session.xml apd-set-socket-session-trace.xml override-function.xml rename-function.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-1163@lists.php.net to get a copy of this message | ||
lboshell Sat Jul 23 12:14:07 2005 EDT
Added files:
/phpdoc-es/reference/apd/functions apd-breakpoint.xml
apd-callstack.xml apd-clunk.xml
apd-continue.xml apd-croak.xml
apd-dump-function-table.xml
apd-dump-persistent-resources.xml
apd-dump-regular-resources.xml
apd-echo.xml
apd-get-active-symbols.xml
apd-set-pprof-trace.xml
apd-set-session-trace.xml
apd-set-session.xml
apd-set-socket-session-trace.xml
override-function.xml
rename-function.xml
Log:
- Documentos nuevos traducidos por Gustavo Narea
http://cvs.php.net/co.php/phpdoc-es/reference/apd/functions/apd-breakpoint.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-breakpoint.xml +++ phpdoc-es/reference/apd/functions/apd-breakpoint.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-breakpoint"> <refnamediv> <refname>apd_breakpoint</refname> <refpurpose>Detiene el intérprete y espera un retorno de carro desde el socket</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_breakpoint</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Esta función puede ser usada para detener la ejecución de su script y esperar respuestas del socket conectado. Para iniciar el programa, sólo presione la tecla enter (una línea en blanco), o introduzca un comando php para ser ejecutado. Una sesión típica usando tcplisten luciría como esto. </para> <para> <programlisting role="shell"> <![CDATA[ bash#tcplisten localhost 7777 APD - Advanced PHP Debugger Trace File --------------------------------------------------------------------------- Process Pid (6118) Trace Begun at Sun Mar 10 23:13:12 2002 --------------------------------------------------------------------------- ( 0.000000): apd_set_session_trace called at /home/alan/Projects/project2/test. php:5 ( 0.074824): apd_set_session_trace_socket() at /home/alan/Projects/project2/tes t.php:5 returned. Elapsed (0.074824) ( 0.074918): apd_breakpoint() /home/alan/Projects/project2/test.php:7 ++ argv[0] $(??) = 9 apd_breakpoint() at /home/alan/Projects/project2/test.php:7 returned. Elapsed ( -2089521468.1073275368) >\n statement: /home/alan/Projects/project2/test.php:8 >\n statement: /home/alan/Projects/project2/test.php:8 >\n statement: /home/alan/Projects/project2/test.php:10 >apd_echo($i); EXEC: apd_echo($i); 0 >apd_echo(serialize(apd_get_active_symbols())); EXEC: apd_echo(serialize(apd_get_active_symbols())); a:47:{i:0;s:4:"PWD";i:1;s:10:"COLORFGBG";i:2;s:11:"XAUTHORITY";i:3;s:14:" COLORTERM_BCE";i:4;s:9:"WINDOWID";i:5;s:14:"ETERM_VERSION";i:6;s:16:"SE SSION_MANAGER";i:7;s:4:"PS1";i:8;s:11:"GDMSESSION";i:9;s:5:"USER";i:10;s:5:" MAIL";i:11;s:7:"OLDPWD";i:12;s:5:"LANG";i:13;s:10:"COLORTERM";i:14;s:8:"DISP LAY";i:15;s:8:"LOGNAME";i:16;s:6:" >apd_echo(system('ls /home/mydir'));......... >apd_continue(0); ]]> </programlisting> </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/co.php/phpdoc-es/reference/apd/functions/apd-callstack.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-callstack.xml +++ phpdoc-es/reference/apd/functions/apd-callstack.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-callstack"> <refnamediv> <refname>apd_callstack</refname> <refpurpose>Devuelve la pila actual de llamados como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_callstack</methodname> <void/> </methodsynopsis> <para> Devuelve la pila actual de llamados como una matriz. </para> <para> <example> <title><function>apd_callstack</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_callstack()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-clunk.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-clunk.xml +++ phpdoc-es/reference/apd/functions/apd-clunk.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-clunk"> <refnamediv> <refname>apd_clunk</refname> <refpurpose>Lanza una advertencia y una pila de llamadas</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_clunk</methodname> <methodparam><type>string</type><parameter>warning</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> </methodsynopsis> <para> Se comporta como el módulo Carp::cluck de perl. Lanza una advertencia y una pila de llamadas. El delimitador de línea predeterminado es "<BR />\n". </para> <para> <example> <title><function>apd_clunk</function></title> <programlisting role="php"> <![CDATA[ <?php apd_clunk("Alguna Advertencia","<P>"); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-continue.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-continue.xml +++ phpdoc-es/reference/apd/functions/apd-continue.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-continue"> <refnamediv> <refname>apd_continue</refname> <refpurpose>Reinicia el intérprete</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_continue</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Usualmente enviado mediante el socket para reiniciar el intérprete. </para> <para> <example> <title><function>apd_continue</function></title> <programlisting role="php"> <![CDATA[ <?php apd_continue(0); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-croak.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-croak.xml +++ phpdoc-es/reference/apd/functions/apd-croak.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-croak"> <refnamediv> <refname>apd_croak</refname> <refpurpose>Lanza un error, una pila de llamadas y detiene la ejecución</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_croak</methodname> <methodparam><type>string</type><parameter>advertencia</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimitador</parameter></methodparam> </methodsynopsis> <para> Se comporta como el módulo Carp::croak de perl. Lanza un error, una pila de llamadas y luego detiene la ejecución. El delimitador de línea predeterminado es "<BR />\n". </para> <para> <example> <title><function>apd_croak</function></title> <programlisting role="php"> <![CDATA[ <?php apd_croak("Alguna Advertencia","<P>"); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-function-table.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-function-table.xml +++ phpdoc-es/reference/apd/functions/apd-dump-function-table.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-function-table"> <refnamediv> <refname>apd_dump_function_table</refname> <refpurpose>Imprime la tabla actual de funciones</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_dump_function_table</methodname> <void/> </methodsynopsis> <para> Imprime la tabla actual de funciones. </para> <para> <example> <title>Ejemplo de <function>apd_dump_function_table</function></title> <programlisting role="php"> <![CDATA[ <?php apd_dump_function_table(); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml +++ phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-persistent-resources"> <refnamediv> <refname>apd_dump_persistent_resources</refname> <refpurpose>Devuelve todos los recursos persistentes como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_dump_persistent_resources</methodname> <void/> </methodsynopsis> <para> Devuelve todos los recursos persistentes como una matriz. </para> <para> <example> <title>Ejemplo de <function>apd_dump_persistent_resources</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_dump_persistent_resources()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml +++ phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-regular-resources"> <refnamediv> <refname>apd_dump_regular_resources</refname> <refpurpose>Devuelve todos los recursos regulares actuales como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_dump_regular_resources</methodname> <void/> </methodsynopsis> <para> Devuelve todos los recursos regulares actuales como una matriz. </para> <para> <example> <title>Ejemplo de <function>apd_dump_regular_resources</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_dump_regular_resources()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-echo.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-echo.xml +++ phpdoc-es/reference/apd/functions/apd-echo.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-echo"> <refnamediv> <refname>apd_echo</refname> <refpurpose>Imprime hacia el socket de depuración</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_echo</methodname> <methodparam><type>string</type><parameter>salida</parameter></methodparam> </methodsynopsis> <para> Usualmente enviado por medio del socket para solicitar información acerca del script en ejecución. </para> <para> <example> <title>Ejemplo de <function>apd_echo</function></title> <programlisting role="php"> <![CDATA[ <?php apd_echo($i); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml +++ phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-get-active-symbols"> <refnamediv> <refname>apd_get_active_symbols</refname> <refpurpose>Obtiene una matriz de los nombres de las variables actuales en el ámbito local</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_get_active_symbols</methodname> <methodparam><parameter/></methodparam> </methodsynopsis> <para> Devuelve los nombres de todas las variables definidas en el ámbito activo (no sus valores). </para> <para> <example> <title>Ejemplo de <function>apd_get_active_symbols</function></title> <programlisting role="php"> <![CDATA[ <?php apd_echo(apd_get_active_symbols()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <refentry id="function.apd-set-pprof-trace"> <refnamediv> <refname>apd_set_pprof_trace</refname> <refpurpose>Inicia la depuración de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_pprof_trace</methodname> <methodparam choice="opt"><type>string</type><parameter>directorio_de_volcado</parameter></methodparam> </methodsynopsis> <para> Comienza a depurar a {directorio_de_volcado}/pprof_{id_proceso}, si directorio_de_volcado no está definido, el parámetro apd.dumpdir del archivo &php.ini; es usado. </para> <para> <example> <title>Ejemplo de <function>apd_set_pprof_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_pprof_trace(); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-session-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-session-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-session-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-session-trace"> <refnamediv> <refname>apd_set_session_trace</refname> <refpurpose>Inicia la depuración de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_session_trace</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>directorio_de_volcado</parameter></methodparam> </methodsynopsis> <para> Comienza a depurar a {directorio_de_volcado}/apd_dump_{id_proceso}, si directorio_de_volcado no está definido, el parámetro apd.dumpdir del archivo &php.ini; es usado. </para> <para> nivel_depuracion es un número entero que es formado sumando los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> Sinceramente, no es muy recomendable usar MEMORY_TRACE. Es muy lento y no parece ser exacto (grandioso, ¿no?), además ASSIGNMENT_TRACE no está implementado. Entonces, para activar todos los rastreos funcionales (TIMING, FUNCTIONS, ARGS, SUMMARY (como strace -c)) use el valor 99. </para> <para> <example> <title>Ejemplo de <function>apd_set_session_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_session_trace(99); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-session.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-session.xml +++ phpdoc-es/reference/apd/functions/apd-set-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-session"> <refnamediv> <refname>apd_set_session</refname> <refpurpose>Cambia o establece el nivel de depuración actual</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_session</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Puede ser usado para incrementar o decrementar la depuración en un área diferente de su aplicación. nivel_depuracion es un número entero que es formado por la suma de los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> <example> <title>Ejemplo de <function>apd_set_session</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_session(9); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-socket-session-trace"> <refnamediv> <refname>apd_set_socket_session_trace</refname> <refpurpose>Inicia la depuración remota de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_set_socket_session_trace</methodname> <methodparam><type>string</type><parameter>direccion_ip_address_o_archivo_socket_unix</parameter></methodparam> <methodparam><type>int</type><parameter>tipo_socket</parameter></methodparam> <methodparam><type>int</type><parameter>puerto</parameter></methodparam> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Se conecta al servidor tcp (p. ej. tcplisten) con la IP o socket de Dominio Unix (como un archivo) especificado, y envía la información de depuración al socket. Puede usar cualquier puerto, pero números altos son mejores puesto que la mayoría de los números bajos pueden ser usados por otros servicios del sistema. </para> <para> El tipo_socket puede ser APD_AF_UNIX (para sockets basados en archivos) o APD_AF_INET (para tcp/ip estándar) </para> <para> nivel_depuracion es un número entero el cual es formado sumando los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> Sinceramente, no es recomendable establecer el valor a 'cero' para comenzar, y usar los métodos de detener la ejecución para iniciar la depuración en un lugar específico en el archivo. </para> <para> <example> <title>Ejemplo de <function>apd_set_socket_session_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_socket_session_trace("127.0.0.1",APD_AF_INET,7112,0); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/override-function.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/override-function.xml +++ phpdoc-es/reference/apd/functions/override-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.override-function"> <refnamediv> <refname>override_function</refname> <refpurpose>Sobreescribe funciones incorporadas</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>override_function</methodname> <methodparam><type>string</type><parameter>nombre_funcion</parameter></methodparam> <methodparam><type>string</type><parameter>argumentos_funcion</parameter></methodparam> <methodparam><type>string</type><parameter>codigo_funcion</parameter></methodparam> </methodsynopsis> <para> Sintaxis similar a create_function(). Sobreescribe funciones incorporadas (las reemplaza en la tabla de símbolos). </para> <para> <example> <title>Ejemplo de <function>override_function</function></title> <programlisting role="php"> <![CDATA[ <?php override_function('test', '$a,$b', 'echo "PROBANDO"; return $a * $b;'); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/rename-function.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/rename-function.xml +++ phpdoc-es/reference/apd/functions/rename-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.rename-function"> <refnamediv> <refname>rename_function</refname> <refpurpose>Renombra nombre_original a nombre_nuevo en el símbolo function_table global</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>rename_function</methodname> <methodparam><type>string</type><parameter>nombre_originial</parameter></methodparam> <methodparam><type>string</type><parameter>nombre_nuevo</parameter></methodparam> </methodsynopsis> <para> Cambia el nombre de nombre_original a nombre_nuevo en el símbolo function_table global. Útil para sobreescribir temporalmente las funciones incorporadas. </para> <para> <example> <title>Ejemplo de <function>rename_function</function></title> <programlisting role="php"> <![CDATA[ <?php rename_function('mysql_connect', 'debug_mysql_connect' ); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-breakpoint.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-breakpoint.xml +++ phpdoc-es/reference/apd/functions/apd-breakpoint.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-breakpoint"> <refnamediv> <refname>apd_breakpoint</refname> <refpurpose>Detiene el intérprete y espera un retorno de carro desde el socket</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_breakpoint</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Esta función puede ser usada para detener la ejecución de su script y esperar respuestas del socket conectado. Para iniciar el programa, sólo presione la tecla enter (una línea en blanco), o introduzca un comando php para ser ejecutado. Una sesión típica usando tcplisten luciría como esto. </para> <para> <programlisting role="shell"> <![CDATA[ bash#tcplisten localhost 7777 APD - Advanced PHP Debugger Trace File --------------------------------------------------------------------------- Process Pid (6118) Trace Begun at Sun Mar 10 23:13:12 2002 --------------------------------------------------------------------------- ( 0.000000): apd_set_session_trace called at /home/alan/Projects/project2/test. php:5 ( 0.074824): apd_set_session_trace_socket() at /home/alan/Projects/project2/tes t.php:5 returned. Elapsed (0.074824) ( 0.074918): apd_breakpoint() /home/alan/Projects/project2/test.php:7 ++ argv[0] $(??) = 9 apd_breakpoint() at /home/alan/Projects/project2/test.php:7 returned. Elapsed ( -2089521468.1073275368) >\n statement: /home/alan/Projects/project2/test.php:8 >\n statement: /home/alan/Projects/project2/test.php:8 >\n statement: /home/alan/Projects/project2/test.php:10 >apd_echo($i); EXEC: apd_echo($i); 0 >apd_echo(serialize(apd_get_active_symbols())); EXEC: apd_echo(serialize(apd_get_active_symbols())); a:47:{i:0;s:4:"PWD";i:1;s:10:"COLORFGBG";i:2;s:11:"XAUTHORITY";i:3;s:14:" COLORTERM_BCE";i:4;s:9:"WINDOWID";i:5;s:14:"ETERM_VERSION";i:6;s:16:"SE SSION_MANAGER";i:7;s:4:"PS1";i:8;s:11:"GDMSESSION";i:9;s:5:"USER";i:10;s:5:" MAIL";i:11;s:7:"OLDPWD";i:12;s:5:"LANG";i:13;s:10:"COLORTERM";i:14;s:8:"DISP LAY";i:15;s:8:"LOGNAME";i:16;s:6:" >apd_echo(system('ls /home/mydir'));......... >apd_continue(0); ]]> </programlisting> </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/co.php/phpdoc-es/reference/apd/functions/apd-callstack.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-callstack.xml +++ phpdoc-es/reference/apd/functions/apd-callstack.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-callstack"> <refnamediv> <refname>apd_callstack</refname> <refpurpose>Devuelve la pila actual de llamados como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_callstack</methodname> <void/> </methodsynopsis> <para> Devuelve la pila actual de llamados como una matriz. </para> <para> <example> <title><function>apd_callstack</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_callstack()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-clunk.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-clunk.xml +++ phpdoc-es/reference/apd/functions/apd-clunk.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-clunk"> <refnamediv> <refname>apd_clunk</refname> <refpurpose>Lanza una advertencia y una pila de llamadas</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_clunk</methodname> <methodparam><type>string</type><parameter>warning</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam> </methodsynopsis> <para> Se comporta como el módulo Carp::cluck de perl. Lanza una advertencia y una pila de llamadas. El delimitador de línea predeterminado es "<BR />\n". </para> <para> <example> <title><function>apd_clunk</function></title> <programlisting role="php"> <![CDATA[ <?php apd_clunk("Alguna Advertencia","<P>"); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-continue.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-continue.xml +++ phpdoc-es/reference/apd/functions/apd-continue.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-continue"> <refnamediv> <refname>apd_continue</refname> <refpurpose>Reinicia el intérprete</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_continue</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Usualmente enviado mediante el socket para reiniciar el intérprete. </para> <para> <example> <title><function>apd_continue</function></title> <programlisting role="php"> <![CDATA[ <?php apd_continue(0); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-croak.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-croak.xml +++ phpdoc-es/reference/apd/functions/apd-croak.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-croak"> <refnamediv> <refname>apd_croak</refname> <refpurpose>Lanza un error, una pila de llamadas y detiene la ejecución</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_croak</methodname> <methodparam><type>string</type><parameter>advertencia</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>delimitador</parameter></methodparam> </methodsynopsis> <para> Se comporta como el módulo Carp::croak de perl. Lanza un error, una pila de llamadas y luego detiene la ejecución. El delimitador de línea predeterminado es "<BR />\n". </para> <para> <example> <title><function>apd_croak</function></title> <programlisting role="php"> <![CDATA[ <?php apd_croak("Alguna Advertencia","<P>"); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-function-table.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-function-table.xml +++ phpdoc-es/reference/apd/functions/apd-dump-function-table.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-function-table"> <refnamediv> <refname>apd_dump_function_table</refname> <refpurpose>Imprime la tabla actual de funciones</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_dump_function_table</methodname> <void/> </methodsynopsis> <para> Imprime la tabla actual de funciones. </para> <para> <example> <title>Ejemplo de <function>apd_dump_function_table</function></title> <programlisting role="php"> <![CDATA[ <?php apd_dump_function_table(); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml +++ phpdoc-es/reference/apd/functions/apd-dump-persistent-resources.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-persistent-resources"> <refnamediv> <refname>apd_dump_persistent_resources</refname> <refpurpose>Devuelve todos los recursos persistentes como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_dump_persistent_resources</methodname> <void/> </methodsynopsis> <para> Devuelve todos los recursos persistentes como una matriz. </para> <para> <example> <title>Ejemplo de <function>apd_dump_persistent_resources</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_dump_persistent_resources()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml +++ phpdoc-es/reference/apd/functions/apd-dump-regular-resources.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-dump-regular-resources"> <refnamediv> <refname>apd_dump_regular_resources</refname> <refpurpose>Devuelve todos los recursos regulares actuales como una matriz</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_dump_regular_resources</methodname> <void/> </methodsynopsis> <para> Devuelve todos los recursos regulares actuales como una matriz. </para> <para> <example> <title>Ejemplo de <function>apd_dump_regular_resources</function></title> <programlisting role="php"> <![CDATA[ <?php print_r(apd_dump_regular_resources()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-echo.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-echo.xml +++ phpdoc-es/reference/apd/functions/apd-echo.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-echo"> <refnamediv> <refname>apd_echo</refname> <refpurpose>Imprime hacia el socket de depuración</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_echo</methodname> <methodparam><type>string</type><parameter>salida</parameter></methodparam> </methodsynopsis> <para> Usualmente enviado por medio del socket para solicitar información acerca del script en ejecución. </para> <para> <example> <title>Ejemplo de <function>apd_echo</function></title> <programlisting role="php"> <![CDATA[ <?php apd_echo($i); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml +++ phpdoc-es/reference/apd/functions/apd-get-active-symbols.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-get-active-symbols"> <refnamediv> <refname>apd_get_active_symbols</refname> <refpurpose>Obtiene una matriz de los nombres de las variables actuales en el ámbito local</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>apd_get_active_symbols</methodname> <methodparam><parameter/></methodparam> </methodsynopsis> <para> Devuelve los nombres de todas las variables definidas en el ámbito activo (no sus valores). </para> <para> <example> <title>Ejemplo de <function>apd_get_active_symbols</function></title> <programlisting role="php"> <![CDATA[ <?php apd_echo(apd_get_active_symbols()); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-pprof-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <refentry id="function.apd-set-pprof-trace"> <refnamediv> <refname>apd_set_pprof_trace</refname> <refpurpose>Inicia la depuración de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_pprof_trace</methodname> <methodparam choice="opt"><type>string</type><parameter>directorio_de_volcado</parameter></methodparam> </methodsynopsis> <para> Comienza a depurar a {directorio_de_volcado}/pprof_{id_proceso}, si directorio_de_volcado no está definido, el parámetro apd.dumpdir del archivo &php.ini; es usado. </para> <para> <example> <title>Ejemplo de <function>apd_set_pprof_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_pprof_trace(); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-session-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-session-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-session-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-session-trace"> <refnamediv> <refname>apd_set_session_trace</refname> <refpurpose>Inicia la depuración de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_session_trace</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>directorio_de_volcado</parameter></methodparam> </methodsynopsis> <para> Comienza a depurar a {directorio_de_volcado}/apd_dump_{id_proceso}, si directorio_de_volcado no está definido, el parámetro apd.dumpdir del archivo &php.ini; es usado. </para> <para> nivel_depuracion es un número entero que es formado sumando los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> Sinceramente, no es muy recomendable usar MEMORY_TRACE. Es muy lento y no parece ser exacto (grandioso, ¿no?), además ASSIGNMENT_TRACE no está implementado. Entonces, para activar todos los rastreos funcionales (TIMING, FUNCTIONS, ARGS, SUMMARY (como strace -c)) use el valor 99. </para> <para> <example> <title>Ejemplo de <function>apd_set_session_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_session_trace(99); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-session.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-session.xml +++ phpdoc-es/reference/apd/functions/apd-set-session.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-session"> <refnamediv> <refname>apd_set_session</refname> <refpurpose>Cambia o establece el nivel de depuración actual</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>void</type><methodname>apd_set_session</methodname> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Puede ser usado para incrementar o decrementar la depuración en un área diferente de su aplicación. nivel_depuracion es un número entero que es formado por la suma de los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> <example> <title>Ejemplo de <function>apd_set_session</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_session(9); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml +++ phpdoc-es/reference/apd/functions/apd-set-socket-session-trace.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.apd-set-socket-session-trace"> <refnamediv> <refname>apd_set_socket_session_trace</refname> <refpurpose>Inicia la depuración remota de la sesión</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>apd_set_socket_session_trace</methodname> <methodparam><type>string</type><parameter>direccion_ip_address_o_archivo_socket_unix</parameter></methodparam> <methodparam><type>int</type><parameter>tipo_socket</parameter></methodparam> <methodparam><type>int</type><parameter>puerto</parameter></methodparam> <methodparam><type>int</type><parameter>nivel_depuracion</parameter></methodparam> </methodsynopsis> <para> Se conecta al servidor tcp (p. ej. tcplisten) con la IP o socket de Dominio Unix (como un archivo) especificado, y envía la información de depuración al socket. Puede usar cualquier puerto, pero números altos son mejores puesto que la mayoría de los números bajos pueden ser usados por otros servicios del sistema. </para> <para> El tipo_socket puede ser APD_AF_UNIX (para sockets basados en archivos) o APD_AF_INET (para tcp/ip estándar) </para> <para> nivel_depuracion es un número entero el cual es formado sumando los siguientes valores: </para> <para> <programlisting role="script"> <![CDATA[ FUNCTION_TRACE 1 ARGS_TRACE 2 ASSIGNMENT_TRACE 4 STATEMENT_TRACE 8 MEMORY_TRACE 16 TIMING_TRACE 32 SUMMARY_TRACE 64 ]]> </programlisting> </para> <para> Sinceramente, no es recomendable establecer el valor a 'cero' para comenzar, y usar los métodos de detener la ejecución para iniciar la depuración en un lugar específico en el archivo. </para> <para> <example> <title>Ejemplo de <function>apd_set_socket_session_trace</function></title> <programlisting role="php"> <![CDATA[ <?php apd_set_socket_session_trace("127.0.0.1",APD_AF_INET,7112,0); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/override-function.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/override-function.xml +++ phpdoc-es/reference/apd/functions/override-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.override-function"> <refnamediv> <refname>override_function</refname> <refpurpose>Sobreescribe funciones incorporadas</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>override_function</methodname> <methodparam><type>string</type><parameter>nombre_funcion</parameter></methodparam> <methodparam><type>string</type><parameter>argumentos_funcion</parameter></methodparam> <methodparam><type>string</type><parameter>codigo_funcion</parameter></methodparam> </methodsynopsis> <para> Sintaxis similar a create_function(). Sobreescribe funciones incorporadas (las reemplaza en la tabla de símbolos). </para> <para> <example> <title>Ejemplo de <function>override_function</function></title> <programlisting role="php"> <![CDATA[ <?php override_function('test', '$a,$b', 'echo "PROBANDO"; return $a * $b;'); ?> ]]> </programlisting> </example> </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/co.php/phpdoc-es/reference/apd/functions/rename-function.xml?r=1.1&p=1 Index: phpdoc-es/reference/apd/functions/rename-function.xml +++ phpdoc-es/reference/apd/functions/rename-function.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: gustavo Status: ready --> <!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 --> <refentry id="function.rename-function"> <refnamediv> <refname>rename_function</refname> <refpurpose>Renombra nombre_original a nombre_nuevo en el símbolo function_table global</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>bool</type><methodname>rename_function</methodname> <methodparam><type>string</type><parameter>nombre_originial</parameter></methodparam> <methodparam><type>string</type><parameter>nombre_nuevo</parameter></methodparam> </methodsynopsis> <para> Cambia el nombre de nombre_original a nombre_nuevo en el símbolo function_table global. Útil para sobreescribir temporalmente las funciones incorporadas. </para> <para> <example> <title>Ejemplo de <function>rename_function</function></title> <programlisting role="php"> <![CDATA[ <?php rename_function('mysql_connect', 'debug_mysql_connect' ); ?> ]]> </programlisting> </example> </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 -->