Re: Changed behaviour for strtr()
| From: | Jordi Boggiano | Date: | Wed, 22 Jun 2011 00:36:54 +0000 |
| Subject: | Re: Changed behaviour for strtr() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53499@lists.php.net to get a copy of this message | ||
On Wed, Jun 22, 2011 at 2:22 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
>> Right now strtr('anything', 'anything', '') ===
>> 'anything', which
>> means that anyone relying on this behavior is doing something strange
>> and dumb imo, doing a function call for nothing. We could maybe say
>
> It does not matter if you approve or disapprove how people write their code
> - we can't break BC unless there's a VERY good reason. You never know in
> which situation with which combination of inputs which application may end
> up using this sequence of parameters and how changing it may break it.
Of course it's not just a matter of taste, but the null case imo
really is not likely to happen by accident, and there is no valid use
case. Anyways.. Case closed I suppose.
Cheers
--
Jordi Boggiano
@seldaek :: http://seld.be/