Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml

From: Date: Tue, 05 Feb 2013 14:06:47 +0000
Subject: Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml
References: 1 2  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10993@lists.php.net to get a copy of this message
On Tue, Feb 5, 2013 at 2:52 PM, Peter Cowburn <petercowburn@gmail.com>wrote: > On 5 February 2013 09:43, Karoly Negyesi <chx@php.net> wrote: > > chx Tue, 05 Feb 2013 09:43:01 +0000 > > > > Revision: > > http://svn.php.net/viewvc?view=revision&revision=329430 > > > > Log: > > document passing non-scalars to strtr(). > > > > Changed paths: > > U phpdoc/en/trunk/reference/strings/functions/strtr.xml > > > > Modified: phpdoc/en/trunk/reference/strings/functions/strtr.xml > > =================================================================== > > --- phpdoc/en/trunk/reference/strings/functions/strtr.xml > 2013-02-05 01:15:21 UTC (rev 329429) > > +++ phpdoc/en/trunk/reference/strings/functions/strtr.xml > 2013-02-05 09:43:01 UTC (rev 329430) > > @@ -101,7 +101,9 @@ > > <para> > > If <parameter>replace_pairs</parameter> contains a key which > > is an empty <type>string</type> > > (<literal>""</literal>), > > - &false; will be returned. > > + &false; will be returned. If the <parameter>str</parameter> is not a > scalar > > + then it is not typecasted into a string, instead a warning is raised > and > > + &null; is returned. > > </para> > > </refsect1> > > > > Unless I'm mistaken, this is part of the normal > zend_parse_parameters() behaviour. We don't document these particular > warnings or return values on every single function. > yes, see the current discussion on the phpdoc mailing list: http://www.mail-archive.com/phpdoc@lists.php.net/msg46558.html -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.doc.cvs (#10993) next »