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

From: Date: Thu, 12 Oct 2006 20:30:22 +0000
Subject: cvs: peardoc /en/core/pear/pear-errorstack staticpush.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8598@lists.php.net to get a copy of this message
cellog Thu Oct 12 20:30:22 2006 UTC Modified files: /peardoc/en/core/pear/pear-errorstack staticpush.xml Log: fix Doc Bug #8673 Doc for PEAR_ErrorStack::staticPush() wrong http://cvs.php.net/viewvc.cgi/peardoc/en/core/pear/pear-errorstack/staticpush.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/en/core/pear/pear-errorstack/staticpush.xml diff -u peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.4 peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.5 --- peardoc/en/core/pear/pear-errorstack/staticpush.xml:1.4 Mon Jul 18 14:15:18 2005 +++ peardoc/en/core/pear/pear-errorstack/staticpush.xml Thu Oct 12 20:30:22 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="core.pear.pear-errorstack.staticpush"> <refnamediv> <refname> @@ -18,7 +18,7 @@ </funcsynopsisinfo> <funcprototype> <funcdef> - <replaceable>PEAR_Error|null|Exception</replaceable> + <replaceable>PEAR_Error|array</replaceable> <function>PEAR_ErrorStack::staticPush</function> </funcdef> <paramdef> @@ -167,14 +167,6 @@ <emphasis>returns</emphasis> if compatibility mode is on, a PEAR_Error is also thrown. - - If the class Exception exists, then one - is returned to allow code like: - <programlisting role="php-highlighted"> -&lt;?php -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.staticpush.throws">

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