cvs: peardoc /en/core pear.xml /en/core/pear pear-errorstack.xml /en/core/pear/pear-errorstack geterrormessage.xml getfileline.xml
getmessagecallback.xml intro.xml pear-errorstack.xml pop.xml popcallback.xml push.xml pushcallback.xml raiseerror.xml setdefaultlogger.xml
setlogger.xml singleton.xml staticgeterrors.xml statichaserrors.xml staticpopcallback.xml staticpush.xml staticpushcallback.xml

From: Date: Sat, 20 Mar 2004 07:43:05 +0000
Subject: cvs: peardoc /en/core pear.xml /en/core/pear pear-errorstack.xml /en/core/pear/pear-errorstack geterrormessage.xml getfileline.xml
getmessagecallback.xml intro.xml pear-errorstack.xml pop.xml popcallback.xml push.xml pushcallback.xml raiseerror.xml setdefaultlogger.xml
setlogger.xml singleton.xml staticgeterrors.xml statichaserrors.xml staticpopcallback.xml staticpush.xml staticpushcallback.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3037@lists.php.net to get a copy of this message
cellog Sat Mar 20 02:43:05 2004 EDT Modified files: /peardoc/en/core pear.xml /peardoc/en/core/pear pear-errorstack.xml /peardoc/en/core/pear/pear-errorstack geterrormessage.xml getfileline.xml getmessagecallback.xml intro.xml pear-errorstack.xml pop.xml popcallback.xml push.xml pushcallback.xml raiseerror.xml setdefaultlogger.xml setlogger.xml singleton.xml staticgeterrors.xml statichaserrors.xml staticpopcallback.xml staticpush.xml staticpushcallback.xml Log: fix build, and a few documentation errors in PEAR_ErrorStack docs. These docs are not ideal, and open for embellishment and addition, as well as revision. Translation is not advised yet

http://cvs.php.net/diff.php/peardoc/en/core/pear.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/core/pear.xml diff -u peardoc/en/core/pear.xml:1.4 peardoc/en/core/pear.xml:1.5 --- peardoc/en/core/pear.xml:1.4 Tue Oct 14 18:53:58 2003 +++ peardoc/en/core/pear.xml Sat Mar 20 02:40:34 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <chapter id="core.pear"> <title>PEAR base classes</title> @@ -9,6 +9,7 @@ &core.pear.pear; &core.pear.pear-error; + &core.pear.pear-errorstack; &core.pear.system; </chapter> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack.xml diff -u peardoc/en/core/pear/pear-errorstack.xml:1.1 peardoc/en/core/pear/pear-errorstack.xml:1.2 --- peardoc/en/core/pear/pear-errorstack.xml:1.1 Sat Mar 20 01:15:16 2004 +++ peardoc/en/core/pear/pear-errorstack.xml Sat Mar 20 02:41:49 2004 @@ -1,29 +1,21 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="core.pear.pear-errorstack"> -<title>PEAR_ErrorStack</title> -<refentry id="core.pear.pear-errorstack.summary"> - <refnamediv> - <refname>Class Summary <classname>PEAR_ErrorStack</classname></refname> - <refpurpose>Error Stack Implementation</refpurpose> - </refnamediv> - <refsect1> - <title>Error Stack Implementation</title> - <para> - PEAR_ErrorStack is an experimental error raising and handling implementation for PEAR that is designed - to replace PEAR_Error when it has stabilized. PEAR_ErrorStack is both backwards compatible with PEAR_Error - and forward compatible with PHP 5's Exception class. There are many other features, all described - in the Introduction, &core.pear.pear-errorstack.intro;. - </para> - <para>Usage: - <programlisting role="php-highlighted"> + <title>PEAR_ErrorStack</title> + <titleabbrev>Intelligent Error Handling with PEAR_ErrorStack</titleabbrev> + <para> + PEAR_ErrorStack is an experimental error raising and handling implementation for PEAR that is designed + to replace PEAR_Error when it has stabilized. PEAR_ErrorStack is both backwards compatible with PEAR_Error + and forward compatible with PHP 5's Exception class. There are many other features, all described + in the Introduction. + </para> + <para>Usage: + <programlisting role="php-highlighted"> 1 // global error stack 2 $global_stack = &amp;PEAR_ErrorStack::<link linkend="core.pear.pear-errorstack.singleton">singleton</link>(&apos;MyPackage&apos;); 3 // local error stack 4 $local_stack = new <link linkend="core.pear.pear-errorstack.pear-errorstack">PEAR_ErrorStack</link>(&apos;MyPackage&apos;); </programlisting> - </para> - </refsect1> -</refentry> + </para> &core.pear.pear-errorstack.intro; &core.pear.pear-errorstack.pear-errorstack; @@ -72,4 +64,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/geterrormessage.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/geterrormessage.xml diff -u peardoc/en/core/pear/pear-errorstack/geterrormessage.xml:1.1 peardoc/en/core/pear/pear-errorstack/geterrormessage.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/geterrormessage.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/geterrormessage.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.geterrormessage"> <refnamediv> <refname><function>PEAR_ErrorStack::getErrorMessage</function></refname> @@ -13,7 +13,7 @@ <funcdef>string <function>PEAR_ErrorStack::getErrorMessage</function></funcdef> <paramdef>PEAR_ErrorStack <parameter>&amp;$stack</parameter></paramdef> <paramdef>array <parameter>$err</parameter></paramdef> - <paramdef>string|&false; <parameter> <optional>$template = &false;</optional></parameter></paramdef> + <paramdef>string|false<parameter> <optional>$template = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -72,7 +72,7 @@ <variablelist> <varlistentry> <term> - <type>string|&false;</type> + <type>string|false</type> <parameter>$template</parameter> </term> <listitem> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/getfileline.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/getfileline.xml diff -u peardoc/en/core/pear/pear-errorstack/getfileline.xml:1.1 peardoc/en/core/pear/pear-errorstack/getfileline.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/getfileline.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/getfileline.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.getfileline"> <refnamediv> <refname><function>PEAR_ErrorStack::getFileLine</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>array|&false;</replaceable> <function>PEAR_ErrorStack::getFileLine</function></funcdef> + <funcdef><replaceable>array|false</replaceable> <function>PEAR_ErrorStack::getFileLine</function></funcdef> <paramdef>array <parameter>$code</parameter></paramdef> <paramdef>unused <parameter>$params</parameter></paramdef> <paramdef>integer <parameter> <optional>$backtrace = &null;</optional></parameter></paramdef> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml diff -u peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/getmessagecallback.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.getmessagecallback"> <refnamediv> <refname><function>PEAR_ErrorStack::getMessageCallback</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>array|string|&false;</replaceable> <function>PEAR_ErrorStack::getMessageCallback</function></funcdef> + <funcdef><replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::getMessageCallback</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/intro.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/intro.xml diff -u peardoc/en/core/pear/pear-errorstack/intro.xml:1.1 peardoc/en/core/pear/pear-errorstack/intro.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/intro.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/intro.xml Sat Mar 20 02:43:04 2004 @@ -1,24 +1,31 @@ -<!-- $Revision: 1.1 $ --> -<refentry id = "core.pear.pear-errorstack.intro"> +<!-- $Revision: 1.2 $ --> +<refentry id="core.pear.pear-errorstack.intro"> <refnamediv> <refname>Introduction to using PEAR_ErrorStack for advanced error handling</refname> <refpurpose>Using PEAR_ErrorStack to do both simple and advanced error handling</refpurpose> </refnamediv> <refsynopsisdiv> <refsynopsisdivinfo> - <author>Gregory Beaver - <authorblurb><ulink url="mailto:cellog@php.net">cellog@php.net</ulink></authorblurb> + <author> + <firstname>Gregory</firstname> + <surname>Beaver</surname> + <authorblurb><para>cellog@php.net</para></authorblurb> </author> - <copyright>Copyright 2004, Gregory Beaver</copyright> + <copyright> + <year>2003</year> + <year>2004</year> + <holder>Gregory Beaver</holder> + </copyright> <releaseinfo>PEAR_ErrorStack 0.6 (alpha)</releaseinfo> </refsynopsisdivinfo> + <simpara>Introduction to the usage of PEAR_ErrorStack</simpara> </refsynopsisdiv> - <refsect1 id = "core.pear.pear-errorstack.intro.intro"> + <refsect1 id="core.pear.pear-errorstack.intro.intro"> <title>Introduction</title> <para> This class is available as part of the <ulink url="http://pear.php.net/pear">PEAR package</ulink>. Features include: - <unorderedlist> + <itemizedlist> <listitem><para>Fully unit-tested and documented</para></listitem> <listitem><para>blazingly fast - blows PEAR_Error out of the water</para></listitem> <listitem><para>Package-specific errors</para></listitem> @@ -33,7 +40,7 @@ <link linkend="core.pear.pear-errorstack.intro.advanced.message">Custom Error Message Generation</link>, and <link linkend="core.pear.pear-errorstack.intro.advanced.callback">controlling error generation</link></para> </listitem> - </unorderedlist> + </itemizedlist> </para> <para> PEAR_ErrorStack implements error raising and handling using a stack pattern. This has tremendous advantages @@ -160,7 +167,7 @@ </programlisting> </para> <para> - Why write a new error-handling routine when &core.pear.pear-error; + Why write a new error-handling routine when <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> already exists? There are several problems with <classname>PEAR_Error</classname>. Although an error message is present in an error class, processing this error message automatically is excessively difficult for computers. In addition, @@ -287,7 +294,7 @@ <itemizedlist> <listitem> <para> - Call &core.pear.pear-errorstack.seterrormessagetemplate;, and set an array mapping + Call <link linkend="core.pear.pear-errorstack.seterrormessagetemplate"><function>PEAR_ErrorStack::setErrorMessageTemplate</function></link>, and set an array mapping error codes to error message templates, like so: </para> <para> @@ -332,10 +339,10 @@ </listitem> <listitem> <para> - Call &core.pear.pear-errorstack.staticsetmessagecallback;, and set a custom error + Call <link linkend="core.pear.pear-errorstack.setmessagecallback"><function>PEAR_ErrorStack::setMessageCallback</function></link>, and set a custom error message generating function or method. This is probably the best option for the majority of complex situations, as it allows users to override or even - extend the existing error message callback using &core.pear.pear-errorstack.getmessagecallback;. + extend the existing error message callback using <link linkend="core.pear.pear-errorstack.getmessagecallback"><function>PEAR_ErrorStack::getMessageCallback</function></link>. For example: <programlisting role = "php"><![CDATA[ <?php @@ -351,16 +358,17 @@ } } $a = new foo; -$a->_oldcallback = PEAR_ErrorStack::staticGetMessageCallback('otherpackage'); -PEAR_ErrorStack::staticSetMessageCallback('otherpackage', array(&$a, 'callback')); +$stack = &PEAR_ErrorStack::singleton('otherpackage'); +$a->_oldcallback = $stack->getMessageCallback('otherpackage'); +$stack->setMessageCallback(array(&$a, 'callback')); ?>]]> </programlisting> </para> </listitem> <listitem> <para> - Extend PEAR_ErrorStack with your own class, and override &core.pear.pear-errorstack.geterrormessagetemplate; or - &core.pear.pear-errorstack.geterrormessage;. To guarantee that this class will be used by other + Extend PEAR_ErrorStack with your own class, and override <link linkend="core.pear.pear-errorstack.geterrormessagetemplate"><function>PEAR_ErrorStack::getErrorMessageTemplate</function></link> or + <link linkend="core.pear.pear-errorstack.geterrormessage"><function>PEAR_ErrorStack::getErrorMessage</function></link>. To guarantee that this class will be used by other packages/applications, use this code right after the class declaration: </para> <para> @@ -380,14 +388,14 @@ There are many scenarios in which fine-grained control over error raising is absolutely necessary. A generic error handling callback means that every single error raised will be handled in the same error callback. Although PEAR_ErrorStack is designed to operate with independent callbacks for each package, generic - error handling is possible through the &core.pear.pear-errorstack.staticpushcallback; method. This is no different + error handling is possible through the <link linkend="core.pear.pear-errorstack.staticpushcallback"><function>PEAR_ErrorStack::staticPushCallback</function></link> method. This is no different from PEAR_Error's PEAR_ERROR_CALLBACK error handling mode. </para> <para> PEAR_ErrorStack's real strength comes from the callback itself. PEAR_Error's callback has no actual effect on the error message - all error handling must happen in the callback method or function itself. PEAR_ErrorStack's callback can influence the error through the use of three constants: - <unorderedlist> + <itemizedlist> <listitem> <para> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_IGNORE</constant></link> @@ -403,11 +411,11 @@ <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link> </para> </listitem> - </unorderedlist> + </itemizedlist> </para> <para> PEAR_ERRORSTACK_IGNORE informs the stack to ignore the error, as if it never occurred. The error will be - neither logged, nor pushed on the stack. It will, however, be returned from &package.debugging.pear-errorstack.pear-errorstack.push; + neither logged, nor pushed on the stack. It will, however, be returned from <link linkend="core.pear.pear-errorstack.push"><function>PEAR_ErrorStack::push</function></link> </para> <para> PEAR_ERRORSTACK_PUSH informs the stack to push the error onto the error stack, but not to log the error. @@ -455,7 +463,7 @@ return PEAR_ERRORSTACK_LOG; } } -$stack2 = &PEAR_ErrorStack::singleton('anotherpackage'); +$stack2 = PEAR_ErrorStack::singleton('anotherpackage'); $stack3 = &PEAR_ErrorStack::singleton('thirdpackage'); PEAR_ErrorStack::setDefaultCallback(array('myclass', 'acallback')); ?>]]> @@ -490,7 +498,7 @@ <refsect3 id = "core.pear.pear-errorstack.intro.advanced.callback.silence"> <title>Emulating the @ operator</title> <para> - One of the difficult-to-use strengths of PEAR_Error involves the &core.pear.pear.expecterror; + One of the difficult-to-use strengths of PEAR_Error involves the <link linkend="core.pear.pear.expecterror"><function>PEAR::expectError</function></link> method. With regular PHP errors, it is possible to silence them using the @ operator like so: </para> <para> @@ -552,7 +560,7 @@ <title>Backwards compatibility with PEAR_Error, Forward compatibility with PHP 5 Exception</title> <para> <classname>PEAR_ErrorStack</classname> can also be programmed to automatically raise a PEAR_Error - using &core.pear.pear.raiseerror;, simply pass in true to the PEAR_Error compatibility like so: + using <link linkend="core.pear.pear.raiseerror"><function>PEAR::raiseError</function></link>, simply pass in true to the PEAR_Error compatibility like so: </para> <para> <programlisting role = "php"><![CDATA[ @@ -596,4 +604,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml diff -u peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.1 peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/pear-errorstack.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.pear-errorstack"> <refnamediv> <refname>constructor <function>PEAR_ErrorStack::PEAR_ErrorStack</function></refname> @@ -22,7 +22,7 @@ <refsect1 id="core.pear.pear-errorstack.pear-errorstack.desc"> &title.desc; - <para>Creates a new private PEAR_ErrorStack. To access a universal stack, use &core.pear.pear-errorstack.singleton;</para> + <para>Creates a new private PEAR_ErrorStack. To access a universal stack, use <link linkend="core.pear.pear-errorstack.singleton"><function>PEAR_ErrorStack::singleton</function></link></para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pear-errorstack.param"> &title.param; http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/pop.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/pop.xml diff -u peardoc/en/core/pear/pear-errorstack/pop.xml:1.1 peardoc/en/core/pear/pear-errorstack/pop.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/pop.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/pop.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.pop"> <refnamediv> <refname><function>PEAR_ErrorStack::pop</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>&false;|array</replaceable> <function>PEAR_ErrorStack::pop</function></funcdef> + <funcdef><replaceable>false|array</replaceable> <function>PEAR_ErrorStack::pop</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> @@ -27,7 +27,7 @@ </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pop.since"> - &title.since; + &title.note; <para> <emphasis>since</emphasis> 0.4alpha it is no longer possible to specify a specific error level to return - the last error pushed will be returned instead. http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/popcallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/popcallback.xml diff -u peardoc/en/core/pear/pear-errorstack/popcallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/popcallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/popcallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/popcallback.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.popcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::popCallback</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>array|string|&false;</replaceable> <function>PEAR_ErrorStack::popCallback</function></funcdef> + <funcdef><replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::popCallback</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/push.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/push.xml diff -u peardoc/en/core/pear/pear-errorstack/push.xml:1.1 peardoc/en/core/pear/pear-errorstack/push.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/push.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/push.xml Sat Mar 20 02:43:04 2004 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.1 $ --> -<refentry id="core.pear.pear-errorstack.pear-errorstack.push"> +<!-- $Revision: 1.2 $ --> +<refentry id="core.pear.pear-errorstack.push"> <refnamediv> <refname><function>PEAR_ErrorStack::push</function></refname> <refpurpose>Add an error to the stack</refpurpose> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once &apos;/ErrorStack.php&apos;; + require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error|array|Exception <function>PEAR_ErrorStack::push</function></funcdef> @@ -138,7 +138,7 @@ </para> <para> The errorData property of the exception class will be set to the array that would normally be - returned. If a &core.pear.pear-error; is returned, the userinfo property is set to the array + returned. If a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> is returned, the userinfo property is set to the array </para> <para>Otherwise, an array is returned in this format: <programlisting role="php-highlighted"> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/pushcallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/pushcallback.xml diff -u peardoc/en/core/pear/pear-errorstack/pushcallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/pushcallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/pushcallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/pushcallback.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.pushcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::pushCallback</function></refname> @@ -56,7 +56,7 @@ <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.popcallback"><function>PEAR_ErrorStack::popCallback</function></link> </para> <para> - <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="package.debugging.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link>, <link linkend="package.debugging.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link> + <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.pushcallback.note"> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/raiseerror.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/raiseerror.xml diff -u peardoc/en/core/pear/pear-errorstack/raiseerror.xml:1.1 peardoc/en/core/pear/pear-errorstack/raiseerror.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/raiseerror.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/raiseerror.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.raiseerror"> <refnamediv> <refname><function>PEAR_ErrorStack::raiseError</function></refname> @@ -18,7 +18,7 @@ <refsect1 id="core.pear.pear-errorstack.raiseerror.desc"> &title.desc; - <para>See &core.pear.pear.raiseerror;</para> + <para>See <link linkend="core.pear.pear.raiseerror"><function>PEAR::raiseError</function></link></para> </refsect1> <refsect1 id="core.pear.pear-errorstack.raiseerror.throws"> &title.throws; http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml diff -u peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml:1.1 peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/setdefaultlogger.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.setdefaultlogger"> <refnamediv> <refname><function>PEAR_ErrorStack::setDefaultLogger</function></refname> @@ -26,7 +26,7 @@ <variablelist> <varlistentry> <term> - &type.Log; + <type>Log</type> <parameter>&amp;$log</parameter> </term> <listitem> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/setlogger.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/setlogger.xml diff -u peardoc/en/core/pear/pear-errorstack/setlogger.xml:1.1 peardoc/en/core/pear/pear-errorstack/setlogger.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/setlogger.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/setlogger.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.setlogger"> <refnamediv> <refname><function>PEAR_ErrorStack::setLogger</function></refname> @@ -18,7 +18,7 @@ <refsect1 id="core.pear.pear-errorstack.setlogger.desc"> &title.desc; - &notdocumented; + <para>Set a PEAR::Log object to use for a specific error stack instance</para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setlogger.param"> &title.param; http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/singleton.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/singleton.xml diff -u peardoc/en/core/pear/pear-errorstack/singleton.xml:1.1 peardoc/en/core/pear/pear-errorstack/singleton.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/singleton.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/singleton.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.singleton"> <refnamediv> <refname><function>PEAR_ErrorStack::singleton</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable><link linkend="package.p.pear-errorstack.pear-errorstack-summary"><classname>PEAR_ErrorStack</classname></link></replaceable>&amp; <function>PEAR_ErrorStack::singleton</function></funcdef> + <funcdef><replaceable><link linkend="core.pear.pear-errorstack"><classname>PEAR_ErrorStack</classname></link></replaceable>&amp; <function>PEAR_ErrorStack::singleton</function></funcdef> <paramdef>string <parameter>$package</parameter></paramdef> <paramdef>callback <parameter> <optional>$msgCallback = &false;</optional></parameter></paramdef> <paramdef>callback <parameter> <optional>$contextCallback = &false;</optional></parameter></paramdef> @@ -62,7 +62,7 @@ </term> <listitem> <para> - callback used for context generation, defaults to <link linkend="package.debugging.pear-errorstack.pear-errorstack.getfileline"><function>getFileLine</function></link> + callback used for context generation, defaults to <link linkend="core.pear.pear-errorstack.getfileline"><function>getFileLine</function></link> </para> </listitem> </varlistentry> @@ -75,8 +75,8 @@ </term> <listitem> <para> - If &true;, then &core.pear.pear.raiseerror; will be called and a &core.pear.pear-error; object will be returned - from calls to &core.pear.pear-errorstack.push; + If &true;, then <link linkend="core.pear.pear.raiseerror"><function>PEAR::raiseError</function></link> will be called and a <link linkend="core.pear.pear-error"><classname>PEAR_Error</classname></link> object will be returned + from calls to <link linkend="core.pear.pear-errorstack.push"><function>PEAR_ErrorStack::push</function></link> </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml diff -u peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/staticgeterrors.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.staticgeterrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticGetErrors</function></refname> @@ -21,7 +21,7 @@ <refsect1 id="core.pear.pear-errorstack.staticgeterrors.desc"> &title.desc; - <para>Static version of &core.pear.pear-errorstack.geterrors;, returns all errors from all singleton stacks.</para> + <para>Static version of <link linkend="core.pear.pear-errorstack.geterrors"><function>PEAR_ErrorStack::getErrors</function></link>, returns all errors from all singleton stacks.</para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticgeterrors.param"> &title.param; http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/statichaserrors.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/statichaserrors.xml diff -u peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.1 peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/statichaserrors.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/statichaserrors.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.statichaserrors"> <refnamediv> <refname><function>PEAR_ErrorStack::staticHasErrors</function></refname> @@ -18,7 +18,7 @@ <refsect1 id="core.pear.pear-errorstack.statichaserrors.desc"> &title.desc; - <para>Static version of &core.pear.pear-errorstack.haserrors;. Returns &true; if any singleton stack has + <para>Static version of <link linkend="core.pear.pear-errorstack.haserrors"><function>PEAR_ErrorStack::hasErrors</function></link>. Returns &true; if any singleton stack has any errors pending.</para> </refsect1> <refsect1 id="core.pear.pear-errorstack.statichaserrors.throws"> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml diff -u peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/staticpopcallback.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.staticpopcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::staticPopCallback</function></refname> @@ -10,7 +10,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>array|string|&false;</replaceable> <function>PEAR_ErrorStack::staticPopCallback</function></funcdef> + <funcdef><replaceable>array|string|false</replaceable> <function>PEAR_ErrorStack::staticPopCallback</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticpush.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticpush.xml diff -u peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.1 peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/staticpush.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.staticpush"> <refnamediv> <refname><function>PEAR_ErrorStack::staticPush</function></refname> @@ -11,7 +11,7 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef><replaceable>PEAR_Error|&null;|Exception</replaceable> <function>PEAR_ErrorStack::staticPush</function></funcdef> + <funcdef><replaceable>PEAR_Error|null|Exception</replaceable> <function>PEAR_ErrorStack::staticPush</function></funcdef> <paramdef>string <parameter>$package</parameter></paramdef> <paramdef>int <parameter>$code</parameter></paramdef> <paramdef>string <parameter> <optional>$level = 'error'</optional></parameter></paramdef> @@ -137,12 +137,12 @@ is returned to allow code like: <programlisting role="php-highlighted"> &lt;?php -1 throw ($stack-&gt;<link linkend="package.debugging.pear-errorstack.pear-errorstack.push">push</link>(MY_ERROR_CODE, &apos;error&apos;, array(&apos;username&apos; =&gt; &apos;grob&apos;))); +1 throw ($stack-&gt;<link linkend="core.pear.pear-errorstack.push">push</link>(MY_ERROR_CODE, &apos;error&apos;, array(&apos;username&apos; =&gt; &apos;grob&apos;))); ?&gt; </programlisting> </para> </refsect1> - <refsect1 id="core.pear.pear-errorstack.throws"> + <refsect1 id="core.pear.pear-errorstack.staticpush.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml diff -u peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/staticpushcallback.xml Sat Mar 20 02:43:04 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.staticpushcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::staticPushCallback</function></refname> @@ -48,10 +48,10 @@ <refsect1 id="core.pear.pear-errorstack.staticpushcallback.see"> &title.see; <para> - <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.staticpopcallback"><function>PEAR_ErrorStack::staticPopCallback</function></link>, <link linkend="package.debugging.pear-errorstack.pear-errorstack.pushcallback"><function>PEAR_ErrorStack::pushCallback</function></link> + <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.staticpopcallback"><function>PEAR_ErrorStack::staticPopCallback</function></link>, <link linkend="core.pear.pear-errorstack.pushcallback"><function>PEAR_ErrorStack::pushCallback</function></link> </para> <para> - <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="package.debugging.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link>, <link linkend="package.debugging.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link> + <emphasis>see</emphasis> <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSHANDLOG</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_PUSH</constant></link>, <link linkend="core.pear.pear-errorstack.constants.details.errorstack---php"><constant>PEAR_ERRORSTACK_LOG</constant></link> </para> </refsect1> <refsect1 id="core.pear.pear-errorstack.staticpushcallback.note">
« previous php.pear.doc (#3037) next »