Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85609 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91214 invoked from network); 31 Mar 2015 21:18:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 21:18:06 -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.160.180 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.160.180 mail-yk0-f180.google.com Received: from [209.85.160.180] ([209.85.160.180:33045] helo=mail-yk0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/E0-19757-C0F0B155 for ; Tue, 31 Mar 2015 16:18:05 -0500 Received: by ykfa3 with SMTP id a3so5168378ykf.0 for ; Tue, 31 Mar 2015 14:18:01 -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=UBEAx1fGDu64mb7AXEuVAJMaXl7eMsCvNHbObBMD8yI=; b=FlNRQJDNX/e6INW02nZHuBQvTJtAIfNT/RwElj0+akbUGFf482FcbDoIi1EF9V3IDS 4NprdzCXDhE4sxZ3Kwd0pBbP+CAaEvkcAZEXJigtakKRABXJbuhOfnR6RXfhkc2LBTJo iAR0lRbSK8MnMH1KnfSt8G+C5frEhfEbWZww3oLxtuOzsU6vzTaOrmm1r6gU1rr3+uLG vEPzu5tHyfyy9d9MYRIcUPxqXinmP79DVQ47gvPN8VOKltMgVrqAw7pniiyduOVneFlU ZTD/Tuf+OkFQhJRbrnJwXL1rVK+3f1big+lWk1mcQiGXRoQIKs9sHMhaBN9toXP9uAis 9oTw== X-Gm-Message-State: ALoCoQkO2WX62TRsA9R3MrKodk8E8dToYImuV1dY631fI7UU6oXwIbHJIWbDGoJ9bPFC+Ls5aUHtZT/4VvQQth13TEykcHFyANlGVC9Q3NV+HrEt+4BAiPaykAeh2r7j+99W0x81B3FPfwjFtQ/Mnio16YwvokbhBw== MIME-Version: 1.0 X-Received: by 10.52.165.65 with SMTP id yw1mr39937022vdb.51.1427836680970; Tue, 31 Mar 2015 14:18:00 -0700 (PDT) Received: by 10.52.248.36 with HTTP; Tue, 31 Mar 2015 14:18:00 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Apr 2015 00:18:00 +0300 Message-ID: To: Nikita Popov Cc: Dan Ackroyd , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c29cc02abbc605129c228d Subject: Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes From: dmitry@zend.com (Dmitry Stogov) --001a11c29cc02abbc605129c228d Content-Type: text/plain; charset=UTF-8 hi Nikita, I don't care about this a lot. I reworked this patch just because it missed few details, and then found and fixed mistake in ext/intl. If you think TypeException is better (I think this makes sense), please implement it on top and commit. Thanks. Dmitry. On Tue, Mar 31, 2015 at 11:07 PM, Nikita Popov wrote: > On Mon, Mar 30, 2015 at 6: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. >> > > I'm wondering, if we implement throwing zpp by using EH_THROW mode, which > relies on converting warnings to exceptions, does that mean that the same > code using strict_types=1 mode will start throwing TypeException instead of > whatever exception type is passed to replace_error_handling? If so, that > would be pretty weird. Maybe we should just always throw TypeException for > this? Could also add a zpp flag for doing that as all the code for throwing > TypeExceptions is already present, we just need to trigger it. > > Nikita > > --001a11c29cc02abbc605129c228d--