Re: Changed behaviour for strtr()
| From: | Sanford Whiteman | Date: | Wed, 22 Jun 2011 01:30:24 +0000 |
| Subject: | Re: Changed behaviour for strtr() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53500@lists.php.net to get a copy of this message | ||
> 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.
How is relying on by-design behavior that turns the call into a no-op
(instead of wrapping the call in an empty() check or whatever) dumb?
Is there some performance hit for entering strtr() that makes this
true?
-- S.