Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52983 invoked from network); 22 Jun 2015 19:00:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2015 19:00:44 -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.216.50 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.216.50 mail-vn0-f50.google.com Received: from [209.85.216.50] ([209.85.216.50:36923] helo=mail-vn0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/B5-07834-B5B58855 for ; Mon, 22 Jun 2015 15:00:43 -0400 Received: by vnbf129 with SMTP id f129so3991993vnb.4 for ; Mon, 22 Jun 2015 12:00:40 -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=s8o4dYrXV59bz8CxdJg5D4zIlT5p2hIYQV1O//m8miQ=; b=FFNeN5B4F34bgkuEF39i4vnBcBQ5YUnzjr16GspS3O5m2MlARQEgVPeZwsyfIp9zLb UsH/EZvcUcgkrJS3GS0b+pWML4Lis5Ya7T79LSMO5yI/DtWSDmb2S+eRwg4ppUl1RBvZ Nugkub5I2SYTG3X6GOfSj4QVsbhJGt5ghj9yPQbTvsN9NKnNGj4uVUhTHEFccxDAsW0s rZPJmEh8YKitnxXhlSDfrBsqGhI8++pn8FIVn67OWy6pkvgZjeVTGc++rRLzbDFTMcR9 OwRpwwAxWCpLhhy4pqiqt+dRLOqaT3V/VHiXKDtrROlZ5AAUyQoMkBnAyXJ6uAi2twzs gtkA== X-Gm-Message-State: ALoCoQnZTzJmDc+b44ZUfxxCHH/YyRuKJp/fJjFC81/eqp3oQaBrkMrzd1qrt5W2ZZeehVhZrgm3ICMJW4JI7GtNgvoozM65P1EqJfun7XUEb9ei0/6oxgXTX6eLY/nrCcUlZcRRLbVXZF/e5csfH+Kz/sFE8ysxNcycKK0SJHFR9EXRTvAVWDY= MIME-Version: 1.0 X-Received: by 10.52.228.42 with SMTP id sf10mr26624673vdc.12.1434999640033; Mon, 22 Jun 2015 12:00:40 -0700 (PDT) Received: by 10.31.10.201 with HTTP; Mon, 22 Jun 2015 12:00:39 -0700 (PDT) In-Reply-To: <5588477E.7050109@lerdorf.com> References: <5586E5D1.4010901@lerdorf.com> <55870947.4060304@lerdorf.com> <5587334C.2080401@lerdorf.com> <55873676.6050706@gmail.com> <55876B29.90804@lerdorf.com> <55881A72.4090403@lerdorf.com> <5588477E.7050109@lerdorf.com> Date: Mon, 22 Jun 2015 22:00:39 +0300 Message-ID: To: Rasmus Lerdorf Cc: Bob Weinand , Anatol Belski , Kalle Sommer Nielsen , Stanislav Malyshev , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=089e01184d7acc3b4905191fe385 Subject: Re: [PHP-DEV] hasType() for internal function parameters? From: dmitry@zend.com (Dmitry Stogov) --089e01184d7acc3b4905191fe385 Content-Type: text/plain; charset=UTF-8 On Mon, Jun 22, 2015 at 8:35 PM, Rasmus Lerdorf wrote: > On 06/22/2015 01:27 PM, Dmitry Stogov wrote: > > Actually, when you added type hints, php compiler stopped optimizing and > > using ZEND_DEFINED (and others) instead of internal function calls, but > > of course this shouldn't change behavior. I'll need to take a look into > > difference. > > Right, behaviour shouldn't change, but couldn't we also make it so that > arginfo for internal calls is only used by reflection? We can do all the > type checking we need right in ZPP as we do now. Let's just ignore > arginfo entirely for these calls. > In general, we can, if we remove corresponding code in zend_vm_def.h, and also some checks for ZEND_HAS_TYPE_INFO and internal functions in zend_compile.c. Thanks. Dmitry. > > -Rasmus > > > --089e01184d7acc3b4905191fe385--