Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94568 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8094 invoked from network); 18 Jul 2016 21:05:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2016 21:05:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.176 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.161.176 mail-yw0-f176.google.com Received: from [209.85.161.176] ([209.85.161.176:36284] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/D8-52781-8944D875 for ; Mon, 18 Jul 2016 17:05:28 -0400 Received: by mail-yw0-f176.google.com with SMTP id c124so44439072ywd.3 for ; Mon, 18 Jul 2016 14:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xg+PPP+zPYIPb8rjuR/AqJJP9pkY7fG6uUG7IZcAgbE=; b=eGp03HaxPCt+ME+Ut28MKl7HwnrBJ5yvm1rtaL/iaaUTQY9nj2EqlGsFKRMDV0bOvp Q3MnU84EJ8jZ6bHCmo6MhhCOzw6RQmrgbLVHH92CnQVM3Y0hdt3t3chqIA/AACXQYxNP K9e1TRcUuaAAiw+ffj7I9a/eOJDGOv3uDVxZkyIVC2DHQBUxxbWR/ZK349MWRWVuOOAv 7DGv9AOc98VrATviHnxjpQ2UOHyNkYTRhhnJ/ho1/egEsi/2LSxIBz7JHLLK3f42nhtp nIqZVZCXcphevc+VpjIGMpFbA9LGBdrHmh096eH9TLliEtAzcwz+RpI/DNpBzYaVilcE 8yGw== 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=xg+PPP+zPYIPb8rjuR/AqJJP9pkY7fG6uUG7IZcAgbE=; b=myJ6UPEo6Xo4RbrEhpgMMnWso4ganA/p/bAVmrWlHNb4xOxGPff8c8+6rTJDELB1Z3 IUiUy/MjfeUYLsfNFoWczzuYnP1UdF1eR2YVoH19VrTsXOVCTNRDICml3I6zMR9zI8Jf IbgWxfEMskmBz1IV53qWkLejIWKEZSim0M0TqOMaZ+3h+vR1QGNW4+ZRgWyQRWTdlrk1 NH0uKf7J+kkS5lBztRreAlnxpAgeq/hqGdQK4agXHDSwkQx/kijLKq0RWb+wfhngoooz d37fekvVeOufpHSVwFXCuc8ngLb0K80H3u9EOYpZEw0I6+tcYA1QzH86i64Dm4SKXW96 hiZA== X-Gm-Message-State: ALyK8tKf1AFoHRgovaRJjG1QYIYX8DfHgXRWMZh5SQm7jPyvN0Q3emDWB0pju+jwvedjnhGClc8zZWxBKEnGIQ== X-Received: by 10.129.101.132 with SMTP id z126mr18978616ywb.241.1468875926074; Mon, 18 Jul 2016 14:05:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.63.5 with HTTP; Mon, 18 Jul 2016 14:05:06 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Jul 2016 17:05:06 -0400 Message-ID: To: Dan Ackroyd Cc: Michael Vostrikov , PHP Internals Content-Type: multipart/alternative; boundary=001a114c6df0cafad90537ef5308 Subject: Re: [PHP-DEV] [RFC] New operator for context-dependent escaping From: marcio.web2@gmail.com (Marcio Almada) --001a114c6df0cafad90537ef5308 Content-Type: text/plain; charset=UTF-8 2016-07-18 16:29 GMT-04:00 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. > In what real world case multiple escape handlers for the same context would be a thing? I only see multiple handlers for the same context as risky since double escaping can, in some contexts, lead to security issues. > > > I tried not to invent new mechanisms of usage. > > Then please copy the set_error_handler behaviour. > > 100% agree with that. cheers > Dan > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114c6df0cafad90537ef5308--