Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3370 invoked from network); 18 Jul 2016 20:29:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2016 20:29:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.161.170 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.161.170 mail-yw0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:33708] helo=mail-yw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/E7-52781-F0C3D875 for ; Mon, 18 Jul 2016 16:29:03 -0400 Received: by mail-yw0-f170.google.com with SMTP id r9so20922414ywg.0 for ; Mon, 18 Jul 2016 13:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/a4cdgY7WBMga6+awoEkWFfIXhhaOeeSjtvMv67b9nY=; b=ky1upKpC167OaMsNE6XZNBi+Pik8TDKn2hR7BFd7zqS9wxHvvPEv7POcKA8eAg9KL1 Mok0JCsq76CIQR1wzUnNRqoit/fLFC6m23v2UUnQyIXvqO3hduQzzW6v7MgBPCOplyE5 027HORdNzcM6bTAnUP4vT97iVaJnnbGt3o8W3OTsL1GANTOAKyNdV8r0HpE2btPDovOK 5qiQ146qfEFTWqJWoPplSCKjp3jAxv/lMKBln4y7ZrraI0GV2kNXXwS0mJqTsuzxdAcx zHUc/4hZCluxW26o+XFzinWsz75xq/SMXz26aAlUZPDZcbrnAF8KFkmHdn/8JhEnYHnC Ae6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/a4cdgY7WBMga6+awoEkWFfIXhhaOeeSjtvMv67b9nY=; b=lD/zJoN02ZbgsbCjoUcDVkbLvNbVedqen7zFeJfXKsihXx7UMrkW27uLiRYW/9skxT snbCnlRNM9alNGme5jjLLryXDEE9ScR/R1Zwb5RPyTFcPrvl8W/Fc2UQnMVaSIthO/FM 8k/5zCFdNImTvY1jGQS60AsR0SQpTh4QQREX/cuGbk/O0lvlGLj6rtSKauMvQDyfZxUs WZVeD1YCeV0lW1ynP2aeBoRS397puHdcBtewccVaEXY4vPoAISh3AJQVvJsuzvn1u04d ycvZcB+w22ZnS5EvlRwRSqD0915QfJC5H2U006YDIkWSh+51OLt23hwRLHEoGPoKmo2h Th8w== X-Gm-Message-State: ALyK8tInq4iJHO5RyB9EeSAg+gGFnbb9VYLKV/oOuYd0Z38Bgm+laSEhRrPNPlM6rFGlDBihOCVsqv3rhJvv4g== X-Received: by 10.13.250.194 with SMTP id k185mr27840793ywf.317.1468873740579; Mon, 18 Jul 2016 13:29:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.230.132 with HTTP; Mon, 18 Jul 2016 13:29:00 -0700 (PDT) X-Originating-IP: [78.148.156.50] In-Reply-To: References: Date: Mon, 18 Jul 2016 21:29:00 +0100 Message-ID: To: Michael Vostrikov Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] New operator for context-dependent escaping From: danack@basereality.com (Dan Ackroyd) On 17 July 2016 at 04:49, Michael Vostrikov wrote: > If some library really need to replace existing handler of application, it can call unregisterHandler() directly. But then there is no way to restore the previous handler. > usually we don't need multiple handlers for certain context. Stuff that is added to the core needs to cover all use-cases, not just the typical ones. > I tried not to invent new mechanisms of usage. Then please copy the set_error_handler behaviour. cheers Dan