Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90082 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55320 invoked from network); 5 Jan 2016 10:39:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2016 10:39:37 -0000 Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rouvenwessling.de from 80.241.60.212 cause and error) X-PHP-List-Original-Sender: me@rouvenwessling.de X-Host-Fingerprint: 80.241.60.212 mx1.mailbox.org Received: from [80.241.60.212] ([80.241.60.212:57486] helo=mx1.mailbox.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/9A-24214-76D9B865 for ; Tue, 05 Jan 2016 05:39:36 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 1FC9F43A42; Tue, 5 Jan 2016 11:39:32 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id AVBMtaRUr2ij; Tue, 5 Jan 2016 11:39:30 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) In-Reply-To: Date: Tue, 5 Jan 2016 11:39:29 +0100 Cc: Internals Content-Transfer-Encoding: quoted-printable Message-ID: <1C17901F-7B7C-4B89-8F87-C849AB3D7510@rouvenwessling.de> References: To: Dan Ackroyd X-Mailer: Apple Mail (2.3096.5) Subject: Re: [PHP-DEV] RFC: Deprecate mb_ereg_replace eval option From: me@rouvenwessling.de (=?utf-8?Q?Rouven_We=C3=9Fling?=) Hi Dan, > On 04 Jan 2016, at 20:52, Dan Ackroyd wrote: >=20 > Are the wrong functions are listed in this sentence: "Emit an > E_DEPRECATED error whenever mb_ereg_replace_callback or > mb_eregi_replace_callback is called with the e option." As the RFC is > meant to be about mb_ereg_replace, mb_eregi_replace right? Indeed. Thanks for spotting it. > The RFC doesn't say what functions people should use in place of the > deprecated functions. This needs to be laid out clearly. I can guess > what should happen for mb_ereg_replace, but there's not clear > replacement for mb_eregi_replace, as there is no > "mb_eregi_replace_callback" function. That ought to be thought about > and added to the RFC. That information is the section "Backward Incompatible Changes=E2=80=9D, = which admittedly may not be the most obvious place to look. To quote = that section: =E2=80=9CThe suggested replacement, mb_ereg_replace_callback is has only = been available since PHP 5.4.1. Projects which support both PHP 5.3 and = PHP 7.1 may need two code paths to avoid deprecation warnings. There is no mb_eregi_replace_callback function. Code using it will have = to be converted to use mb_ereg_replace_callbackwith the i option." >> The mandatory discussion period will end January 19th. >=20 > That sentence is implying that you will put it to the vote as soon as > possible. Please don't do that. There is no rush to deprecate these > functions; the earliest they would actually be removed is years away, > and there needs to be a path guiding the people on how to replace that > functionality in place before we deprecate them. The implication wasn=E2=80=99t my attention. It was mostly a reminder = for myself how long I have to keep the discussion open. That said, I = hope this isn=E2=80=99t controversial due to the similar RFC about = pre_replace passing 4 years ago. Best regards Rouven=