Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71611 invoked from network); 25 Mar 2015 15:37:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2015 15:37:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:33812] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/51-63185-426D2155 for ; Wed, 25 Mar 2015 10:37:09 -0500 Received: by wibg7 with SMTP id g7so77301170wib.1 for ; Wed, 25 Mar 2015 08:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xPMfuu+n847eEa+u3B/5AhACc2suj/CU79xSpSzUqfw=; b=vFHi7PJwCUHR+oaJve6/uDCBZDeu4VREyy4QyxK9C09NbthgNmfC0AuKfljol4uXTW dkvs1YLHSgEwlckwXtkU/EB2i2Nd1Gmj2Zyc6NLjlPXQkW+RQ9I/ji2oPHaIWmUvoPKT jVtZrEQYTzLsSqbTSN2FoR0B/cVDnGSZzUT7IoHoM7CLRJgOFw7NAby2TFigwjm+T3ME aEm/NI+aB8Nc9oZscij7NINOKhPjJPew/9HPWNOMu+Yia3uwo0vnxuBcBa0FgGIxNo7q JZ4QZAOhFBa3YVfNWJ3ksEAhoOBMbvoiO04fZlk2z5Ot5eU2E+bds3b7N3ZmkA4Innrq BWNw== MIME-Version: 1.0 X-Received: by 10.194.177.132 with SMTP id cq4mr18185162wjc.99.1427297825982; Wed, 25 Mar 2015 08:37:05 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.180.79.73 with HTTP; Wed, 25 Mar 2015 08:37:05 -0700 (PDT) In-Reply-To: <5512C718.2020008@gmail.com> References: <66c0cca2453de53bed0328af2732c7bd@mail.gmail.com> <50.00.26446.A7E72155@pb1.pair.com> <5512C718.2020008@gmail.com> Date: Wed, 25 Mar 2015 15:37:05 +0000 X-Google-Sender-Auth: nTSaG__RawhG-axjRx3-n9ogGOU Message-ID: To: Rowan Collins Cc: PHP Internals List Content-Type: multipart/alternative; boundary=089e014942e6e80d3105121eab1a Subject: Re: [PHP-DEV] Deprecate or remove mbstring function overloads in PHP 7 From: cw@daverandom.com (Chris Wright) --089e014942e6e80d3105121eab1a Content-Type: text/plain; charset=UTF-8 On 25 March 2015 at 14:32, Rowan Collins wrote: > Chris Wright wrote on 25/03/2015 13:44: > >> That said, in the interests of not causing people using this functionality >> issues with logs full of errors and/or error-related performance issues, I >> would support having this deprecation set up in such a way that an error >> is >> only issued at most once per request - there's no need to issue a >> deprecation warning at every function call. >> > > I guess the advantage of doing it on each function call is that you see > which areas of code are relying on the feature, rather than just that it's > enabled. > Indeed, valid point Maybe we need a smarter way of signalling deprecation in general, because > it's very all-or-nothing at the moment. But that could possibly be > implemented as a userland error handler which de-duped errors before > outputting them. In this specific case we could modify the behaviour of the value of the ini setting to make this configurable. As it stands, the value is treated as a bit mask with three bits that have meaning, we could make the fourth bit mean "issue an error on every function call" when set, if it's clear then issue a warning only once during rinit when the value is non-zero. I realise this is a slightly horrible solution, just throwing it out there as a possibility. I'd argue that it's not really any *more* horrible than the feature in general, though. > > > Regards, > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e014942e6e80d3105121eab1a--