Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24380 invoked from network); 22 Jun 2011 01:31:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2011 01:31:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=swhitemanlistens-software@cypressintegrated.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=swhitemanlistens-software@cypressintegrated.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cypressintegrated.com designates 69.28.242.152 as permitted sender) X-PHP-List-Original-Sender: swhitemanlistens-software@cypressintegrated.com X-Host-Fingerprint: 69.28.242.152 rproxy1-a.cypressintegrated.com Windows 2000 SP4, XP SP1 Received: from [69.28.242.152] ([69.28.242.152:2091] helo=rproxy1-a.cypressintegrated.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/D2-25945-DD5410E4 for ; Tue, 21 Jun 2011 21:31:10 -0400 Received: from bad.dop.co ([192.168.87.152]) by rproxy1-a.cypressintegrated.com (Brand New Heavy v1.0) with ASMTP id FHB79706 for ; Tue, 21 Jun 2011 21:31:06 -0400 Date: Tue, 21 Jun 2011 21:30:24 -0400 Reply-To: Sanford Whiteman X-Priority: 3 (Normal) Message-ID: <1353048461.20110621213024@cypressintegrated.com> To: Jordi Boggiano In-Reply-To: References: <4DFF7C28.30100@sugarcrm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Changed behaviour for strtr() From: swhitemanlistens-software@cypressintegrated.com (Sanford Whiteman) > 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.