Re: Changed behaviour for strtr()
| From: | Stas Malyshev | Date: | Wed, 22 Jun 2011 00:22:38 +0000 |
| Subject: | Re: Changed behaviour for strtr() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53498@lists.php.net to get a copy of this message | ||
Hi!
On 6/21/11 5:14 PM, Jordi Boggiano 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 sayIt 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. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227