cvs: peardoc /en/core/pear/pear-errorstack setcontextcallback.xml

From: Date: Sat, 23 Oct 2004 20:24:27 +0000
Subject: cvs: peardoc /en/core/pear/pear-errorstack setcontextcallback.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5027@lists.php.net to get a copy of this message
cellog Sat Oct 23 16:24:27 2004 EDT Modified files: /peardoc/en/core/pear/pear-errorstack setcontextcallback.xml Log: fix #2033 docs for setContextCallback are wrong http://cvs.php.net/diff.php/peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml diff -u peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml:1.1 peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml:1.2 --- peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml:1.1 Sat Mar 20 01:16:32 2004 +++ peardoc/en/core/pear/pear-errorstack/setcontextcallback.xml Sat Oct 23 16:24:26 2004 @@ -1,8 +1,8 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="core.pear.pear-errorstack.setcontextcallback"> <refnamediv> <refname><function>PEAR_ErrorStack::setContextCallback</function></refname> - <refpurpose>Set an error code =&gt; error message mapping callback</refpurpose> + <refpurpose>Set a callback that generates context information (location of error) for an error stack</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -10,16 +10,18 @@ require_once &apos;PEAR/ErrorStack.php&apos;; </funcsynopsisinfo> <funcprototype> - <funcdef>void <function>PEAR_ErrorStack::setContextCallback</function></funcdef> - <paramdef>mixed <parameter>$contextCallback</parameter></paramdef> + <funcdef>void <function>PEAR_ErrorStack::setContextCallback</function></funcdef> + <paramdef>array|string|null <parameter>$contextCallback</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.desc"> &title.desc; - <para>This method sets the callback that can be used to generate error - messages for any PEAR_ErrorStack instance</para> + <para>This method sets the callback that can be used to generate context + information for an error. Passing in &null; will disable context generation + and remove the expensive call to <ulink url="&url.php.lookup;debug_backtrace"> + <function>debug_backtrace</function></ulink></para> </refsect1> <refsect1 id="core.pear.pear-errorstack.setcontextcallback.param"> &title.param; @@ -32,7 +34,7 @@ </term> <listitem> <para> - + A valid callback as defined by <ulink url="&url.php.lookup;is_callable"><function>is_callable</function></ulink> </para> </listitem> </varlistentry>

« previous php.pear.doc (#5027) next »