Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88168 invoked from network); 25 Feb 2015 16:06:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2015 16:06:07 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.180 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:41485] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/50-20665-EE2FDE45 for ; Wed, 25 Feb 2015 11:06:07 -0500 Received: by lbiz11 with SMTP id z11so4829261lbi.8 for ; Wed, 25 Feb 2015 08:06:03 -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=B66UAPYajbclQ73BdMHgcdFvS7/bkpw2n6/HmwXhfbc=; b=BVMNts3yyX2IVRoUf/8ioGD68oHtpA4YKDufj8qm9ViDrJpjw8lXVoD5AfZ7kVJw/C 0L+5Lu/2a1jP3k9Sd9blwTV2sxi7qM1AhbvvS8JStFtseJmZcI0FtTiIdCIG5RhH+d4W 8Ci4Jg9Hq305/x4AwsIJqyEDyTvRRLdJbpDvfK4USYIH7uEYD9jDvHqaktxlEALtfSxq 5j0hnhJJH+X9rJsAXPK/cfEXXaeJep4hhcduJGWdlNpqXYWHNzTWpKoxac4eTBAU/NCz tVKcT7giDmYmqhjvHN8rDpUHmYeUbgwOUAbwU7aoT2eWHE/SzILULct0EdGxNPqLMxdO pHIQ== MIME-Version: 1.0 X-Received: by 10.112.161.229 with SMTP id xv5mr2748377lbb.43.1424880363435; Wed, 25 Feb 2015 08:06:03 -0800 (PST) Received: by 10.25.43.9 with HTTP; Wed, 25 Feb 2015 08:06:03 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Feb 2015 11:06:03 -0500 Message-ID: To: Dmitry Stogov 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: ircmaxell@gmail.com (Anthony Ferrara) Dmitry, > But checks are performed not in the caller but in RECV opcode at called > function. > And in this function we don't know id it's going to be called only in strict > mode or in weak as well. Currently, yes. However, by the time we enter ZEND_DO_FCALL, we know which function we're going to call. And at compile time, we know how many arguments exist. We can also move the argument verification from RECV into ZEND_DO_FCALL just like happens today with internal functions. In fact, it may be worthwhile investigating that in general. Anthony