Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24412 invoked from network); 20 Jun 2011 11:16:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2011 11:16:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=robert@xarg.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robert@xarg.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain xarg.org from 209.85.220.170 cause and error) X-PHP-List-Original-Sender: robert@xarg.org X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:60925] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/E7-34681-80C2FFD4 for ; Mon, 20 Jun 2011 07:16:25 -0400 Received: by vxi39 with SMTP id 39so832652vxi.29 for ; Mon, 20 Jun 2011 04:16:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.67.135 with SMTP id n7mr797873vdt.246.1308568582430; Mon, 20 Jun 2011 04:16:22 -0700 (PDT) Received: by 10.220.45.196 with HTTP; Mon, 20 Jun 2011 04:16:22 -0700 (PDT) X-Originating-IP: [92.225.216.141] Date: Mon, 20 Jun 2011 13:16:22 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf307f399e85211704a622ddbc Subject: Changed behaviour for strtr() From: robert@xarg.org (Robert Eisele) --20cf307f399e85211704a622ddbc Content-Type: text/plain; charset=ISO-8859-1 Here is the next one. I think it's quite intuitive to use strtr() to remove single characters of a string, too, instead of using many str_replace($str, $chr, ""). I'd glad to see this change also in 5.4. Additionally, I've removed the lookup-table generation as gcc doesn't optimize this away. Robert --20cf307f399e85211704a622ddbc--