Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85108 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57084 invoked from network); 17 Mar 2015 00:44:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 00:44:52 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.45 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.218.45 mail-oi0-f45.google.com Received: from [209.85.218.45] ([209.85.218.45:33563] helo=mail-oi0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/13-34940-30977055 for ; Mon, 16 Mar 2015 19:44:51 -0500 Received: by oibu204 with SMTP id u204so52813539oib.0 for ; Mon, 16 Mar 2015 17:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=6nK8dSDNVB1dEtCGpuXVIp6ecOglob2k0+3xyiU1sYk=; b=mdRGV6bSA7OZ/wDw7GLDhilcH1qNUroTFNPmVxSQmdNjSQLxu+y+vVwJJxLpLEoMOG I6OZcaasEKbeL2w1U2A9bYEWnfuPX4k3pmVpduyujDFAWYd8J2DRuhayclm35VeEsM/q iEFS4K8Nm3sdecEGMkeoAH2Bec5oleIrPM5QGmiRsFWsa25L0QCL3QVHMUVG40LOBUla lE7thDrElQPILY0163C+PDY3TQ+b3pBsQdOayNI/KkoAQf8tCTfJnDz1QRXMneDx33R7 VHPR27g2UORS+BS4g53Nfl7IJpHs7nqlC32IFbutBhArFPx/kEQiNI5EXGdfziBYK5XC nUGQ== X-Received: by 10.202.52.215 with SMTP id b206mr47713702oia.31.1426553089380; Mon, 16 Mar 2015 17:44:49 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Mon, 16 Mar 2015 17:44:09 -0700 (PDT) In-Reply-To: References: <55066F07.80308@birkholz.biz> Date: Tue, 17 Mar 2015 09:44:09 +0900 X-Google-Sender-Auth: h5E9TgKPZvcL1Ag5GLwFvEAaBjA Message-ID: To: Mike Willbanks Cc: Dennis Birkholz , "internals@lists.php.net >> 'PHP Internals'" Content-Type: multipart/alternative; boundary=001a113cd4122559ff0511714611 Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113cd4122559ff0511714611 Content-Type: text/plain; charset=UTF-8 Hi Mike, On Tue, Mar 17, 2015 at 5:03 AM, Mike Willbanks wrote: > Let see how it looks if "strict_types" is renamed to "raise_type_error" >> >> > declare(raise_type_error = 1); >> function foo(int $a) { >> // no function call here >> } >> ?> >> The declare here does just nothing. >> >> > require "lib.php"; >> foo("123"); // will work >> ?> >> >> > declare(raise_type_error = 1); >> require "lib.php"; >> foo("123"); // will give an error >> ?> >> >> Is everyone feel OK with this?? >> > > > That seems far more odd in my opinion. I vastly prefer the first. > The name implies what it does. The reason you think this is odd is because the behavior is odd. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113cd4122559ff0511714611--