Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83670 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98718 invoked from network); 24 Feb 2015 15:14:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 15:14:15 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:40734] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/93-10521-6459CE45 for ; Tue, 24 Feb 2015 10:14:14 -0500 Received: by mail-vc0-f176.google.com with SMTP id la4so10070914vcb.7 for ; Tue, 24 Feb 2015 07:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CZ1OSWBkt8QV13sWzkJ9WGivw+9LJAkC6/4T8QmYXyk=; b=hhfnSmzsbl0cz1aK0UqYPwkWfHVNsfkvFDoP4e/B90Wozz5yI261IRoOrYpU3Wt63j TaBmipppr8UzCBk2aNwDbXQP/WD9WOyBE1YXuYL0qzDJj4gnTn1yzMQwA1Yx3+YOstnb huzt5Wf4LzM+FqNnkF0qVxvViaGPF6+XTBS7ImJgrGiIJweAcj/5wvCKTGFQ9HzswWqw E6AjAbbanb4aTI5qBlr3ok8MdPKxbpR/qA7rXJ7BGFvwZr5GvykXbUKYnY+ppcPCICn/ QKftIeqW5cHRsmRPNf/RXvh7WtiNVrRi9jDK8STXP8axYrg5FkrNyUJ+KOf1AEXew0S3 3qiA== MIME-Version: 1.0 X-Received: by 10.53.11.76 with SMTP id eg12mr15872813vdd.68.1424790851853; Tue, 24 Feb 2015 07:14:11 -0800 (PST) Received: by 10.52.4.104 with HTTP; Tue, 24 Feb 2015 07:14:11 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Feb 2015 15:14:11 +0000 Message-ID: To: Anthony Ferrara Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC-Discuss] Scalar Type Declarations v0.5 From: leight@gmail.com (Leigh) I've been having a play around with the implementation, and it's been behaving pretty solidly, nothing unexpected so far. I've even gotten around my issue regarding no strict-by-default option for those of us who want it. Maybe this will sway a few voters. I'll put the source up if this particular implementation gets through (no point otherwise!) ~/php-strict $ ../php-src/sapi/cli/php -r 'function foo(int $bar) { var_dump($bar); } foo("10");' int(10) ~/php-strict $ ../php-src/sapi/cli/php -d extension=modules/strict.so -r 'function foo(int $bar) { var_dump($bar); } foo("10");' Catchable fatal error: Argument 1 passed to foo() must be of the type integer, string given, called in Command line code on line 1 and defined in Command line code on line 1