Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85576 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92749 invoked from network); 31 Mar 2015 07:52:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 07:52:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.213.51 mail-yh0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:35597] helo=mail-yh0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/62-06567-E125A155 for ; Tue, 31 Mar 2015 02:51:59 -0500 Received: by yhfw71 with SMTP id w71so1389528yhf.2 for ; Tue, 31 Mar 2015 00:51:56 -0700 (PDT) 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:date :message-id:subject:from:to:cc:content-type; bh=F/Z0ec+N8bft5fqmQ+gYDaz7JCLScaBQdzYmTrN+xdg=; b=IaF3TF/bB/XXB1zZBslz0TJ9i4AltxrA0daO+RwDsgayhxnDUrxzyLYFG1DsFTUxGV q72yxuzplfPwGcqNxoOuPOgUXb6dz58bx9JAhNYgdZ8JkVj7I+YIlT4nf9PXQ08hoASP yBlJ0gdKSP3D+3UeQDDMkHW+1/Qix1K/07evVJyrvQqifeGnLnyz3WESB6l8ZgS0tM5X 4IyTWp8SJvx2qq6CncwsNtYvEVgrYHJdgqQ6u1jtpM14QAwJmDP0WPA2b3b6vbhJkQRA Rg/A/6tpOtPUcXn9jVhfHcYqskrDEfOrn0uIZdYxRe9EZSkfWLL7UMWncSCdN0HQODvQ GyWQ== X-Gm-Message-State: ALoCoQlC2XpDCnCGLmjvisUN0vNAEC6pTKNHVM7ddPimMwBjRZPr88LJP1elRAtWc+J+13KygfIGtwThP9+/Lp2dUBUO4DV41B1E6GIyNFV3JJSV5lNkNDXX8BeQjPOeAQBnGDEyxjM2Gz3GH3z+t3eNMUBJ5ViWgw== MIME-Version: 1.0 X-Received: by 10.52.78.35 with SMTP id y3mr38089294vdw.5.1427788316412; Tue, 31 Mar 2015 00:51:56 -0700 (PDT) Received: by 10.52.248.36 with HTTP; Tue, 31 Mar 2015 00:51:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Mar 2015 10:51:56 +0300 Message-ID: To: Dan Ackroyd Cc: "internals@lists.php.net" , Nikita Popov Content-Type: multipart/alternative; boundary=001a113403826a264e051290df7b Subject: Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes From: dmitry@zend.com (Dmitry Stogov) --001a113403826a264e051290df7b Content-Type: text/plain; charset=UTF-8 Hi Dan, any update? should I commit it? or do you see any problems? Thanks. Dmitry. On Mon, Mar 30, 2015 at 7:06 PM, Dmitry Stogov wrote: > Hi Dan, > > The updated patch is at https://github.com/php/php-src/pull/1205 > > The main difference is in ext/intl. > If you don't see any problems I can commit it. > > I didn't think about the classes you missed. > > Thanks. Dmitry. > > On Fri, Mar 27, 2015 at 7:32 PM, Dan Ackroyd > wrote: > >> On 26 March 2015 at 20:19, Dmitry Stogov wrote: >> Hi Dmitry, >> >> > however the patch looks a bit surprising to me. >> > We have special function to do this - zend_ctor_make_null() and some >> tricks in the VM. >> > I made just a quick look over your patch but didn't find any references >> to them. >> >> Surprising is usually not good, so let me see if I can explain. >> >> I touched the minimal amount of code needed to achieve the desired >> behaviour. For the intl classes, the exception is being thrown by >> telling the intl error handling code to use an exception, no matter >> what the intl.use_exceptions setting is, if the error was emitted >> during a constructor: >> >> https://github.com/Danack/php-src/blob/InternalClassClean/ext/intl/intl_error.c#L114 >> >> I didn't touch any of the code zend_ctor_make_null. I guess if it's >> only used in these special cases, and they are going away it could >> also be removed? But it sounds like that would be a job for someone >> who understands that bit. >> >> > Please don't commit it yet. >> >> That won't be difficult, I don't have commit rights, and don't >> particularly want them. >> >> > Nikita, could you also take a quick look. >> >> Nikita pointed out that I may have missed a couple of classes. I'll >> try to get those updated before you have a look. >> >> cheers >> Dan >> > > --001a113403826a264e051290df7b--