Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24575 invoked from network); 1 Jul 2013 21:49:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2013 21:49:14 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.78 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.78 blu0-omc2-s3.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.78] ([65.55.111.78:1594] helo=blu0-omc2-s3.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/02-09174-A59F1D15 for ; Mon, 01 Jul 2013 17:49:14 -0400 Received: from BLU0-SMTP175 ([65.55.111.73]) by blu0-omc2-s3.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 1 Jul 2013 14:49:11 -0700 X-EIP: [bJp415ndZqcEfIIIZY5UJIQB5MnNBdSr] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Received: from bob-weinands-imac.fritz.box ([188.115.58.31]) by BLU0-SMTP175.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 1 Jul 2013 14:49:07 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Jul 2013 23:49:05 +0200 To: PHP List Developers Mailing MIME-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) X-OriginalArrivalTime: 01 Jul 2013 21:49:08.0074 (UTC) FILETIME=[D03DACA0:01CE76A4] Subject: Deprecate quotemeta function From: bobwei9@hotmail.com (Bob Weinand) Hi! I think we should deprecate (and remove in 1-2 versions) quasi-aliases. = E.g. functions which call another function with the same arguments and a = few additional invariable arguments. Like quotemeta (http://php.net/quotemeta).=20 // Except for empty($str) quotemeta($str) =3D=3D addcslashes($str, ".\+*?[^]($)") Also it's a bit odd that quotemeta returns false on an empty string what = makes no sense. Are there still uses for quotemeta which aren't negligible? (any reasons = why we shouldn't deprecate it?) Bob Weinand