Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78519 invoked from network); 12 Mar 2016 17:54:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2016 17:54:34 -0000 Authentication-Results: pb1.pair.com header.from=pmjones88@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pmjones88@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.171 as permitted sender) X-PHP-List-Original-Sender: pmjones88@gmail.com X-Host-Fingerprint: 209.85.213.171 mail-ig0-f171.google.com Received: from [209.85.213.171] ([209.85.213.171:35156] helo=mail-ig0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/47-14237-7D754E65 for ; Sat, 12 Mar 2016 12:54:32 -0500 Received: by mail-ig0-f171.google.com with SMTP id vf5so33144135igb.0 for ; Sat, 12 Mar 2016 09:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fKy+9ExrqWKpJwlDecp1WSgea4xzFrGLS0n0kixQfYo=; b=AOxuZ7fNJz4DYEB7zmS86RDlM0QETjOBOuwfDfFymPs8tTtovVK0kHrJE7JBm0G9N7 lIDqsM5un8Fp64QAA7aDPrGP8mJZBNGhyLp+TFq4GxJ9XS3fpVOPi5OCuJzQwGvjju/c Ik7JngNWUVl5vvF3HL/mUe/yKlqgeR55M8V4fUjsH/4cIUrEF/Kk95fSfxTvR9fne7iN hxxvBZRE25qi0Ka2Uggwuv9a9OAIlFG7LLzR92lwhfeElIE3WGv9+qfwxq/Ggmyp8Qnz WKltX7dUUNRmDTAs17uEEZkLMKHYNNdKAqeHQJBMlhwtmBCeii4PhE9XoHa7JZVnayhz bSlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fKy+9ExrqWKpJwlDecp1WSgea4xzFrGLS0n0kixQfYo=; b=czpjILqL2nWsByS3gGkhuGLGze62AvkgO57z9Nz/afimfcXLge3zgeTD9KMOgJToP9 AkRHHG24Hw077E+4O1q5s+rwFQuwXnlnA138ihzJi0HJO0HLKZKxSKDW+XyS+y1pOTd/ cxuje06GfuTEXdCzqAQymeXioNykfX+mbuijxfm8FOxhLyrFHUDQmJ6UHkwUDBYpuM6T a7Gi7vhLpw/DgDXd8nmmtKXhtsEzBE1v/Mba78DULjl96y8hqb1HCdLKRM57C1Lf6KEV nNa8fBvvig1HJtW0BTKTv27JaTFj+z9ibCM5PnmVXPVwyqcUHOgVO3A7v5VOP6wORIT0 Qijg== X-Gm-Message-State: AD7BkJLT5pivifIzfXFwpmk4yBhVjXafRoHVMLVMk7SlVWVZsVsCjm+tSTKtR+FBRjAtQA== X-Received: by 10.50.28.72 with SMTP id z8mr9723104igg.44.1457805268004; Sat, 12 Mar 2016 09:54:28 -0800 (PST) Received: from ronin.attlocal.net ([2602:306:bdf1:d380:840c:c40e:3924:6ca0]) by smtp.gmail.com with ESMTPSA id r73sm5940329ioe.5.2016.03.12.09.54.26 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Mar 2016 09:54:27 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: Date: Sat, 12 Mar 2016 11:54:26 -0600 Cc: Nikita Popov , PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <321D2AE8-4C59-4739-9D8B-C3A55D5B7D8C@gmail.com> References: To: Sara Golemon X-Mailer: Apple Mail (2.3112) Subject: Re: [PHP-DEV] Evaluate arguments of new for classes without constructors From: pmjones88@gmail.com ("Paul M. Jones") > On Mar 12, 2016, at 11:27, Sara Golemon wrote: >=20 >> HHVM does not implement "new" in this way, they always evaluate the = arguments. >>=20 > Which, if it helps, means that we already know a lot of frameworks > /don't/ break as a result of fixing this behavior. >=20 >> As this is technically a BC affecting change (even if of the lowest >> impact), I'm running it past the list first. >>=20 > Technically a BC break that justifies waiting till a major version. > Given the extremely specific requirements to hit this edge case > however, passing side-effect args to a non-existent constructor, I > personally think a minor version is fine. Of curiosity, what effect (if any) might this have on = ReflectionClass::newInstance(), ::newInstanceArgs(), and = ::newInstanceWithoutConstructor()? (I ask because some existing DI = systems, such as Aura.Di, rely on those for creating objects.) --=20 Paul M. Jones pmjones88@gmail.com http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php