Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml
| From: | Peter Cowburn | Date: | Tue, 05 Feb 2013 13:52:20 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-10992@lists.php.net to get a copy of this message | ||
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.