Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47231 invoked from network); 22 Jun 2015 17:36:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jun 2015 17:36:05 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.216.175 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.175 mail-qc0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:33849] helo=mail-qc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/15-07834-38748855 for ; Mon, 22 Jun 2015 13:36:04 -0400 Received: by qcji3 with SMTP id i3so9338195qcj.1 for ; Mon, 22 Jun 2015 10:36:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=DHqd/V+KTilRczVpTSKkaq+j79aeD3E1t4J2/wcbvDQ=; b=BZN/n0qGQ9qLbNOVyhaNg9S24Z/SEZdbyny/EptQ0MIMNW0Rm6umSVEmqn50GjXGmT MjxDwfK4BztP0U1dkIqapADztoCqrvbrdb6rMSj4TekpNmhbCl5r46nwBxnN46cOdL1T trurKF2M+X/s5/4qB5tBzzv2XFMbTCCWymeZdM2H1jcR8mlTTrtJR6MXtu315hLFItMt lUvl/iwk8WYL7p8vHXkIffEUl9I7y3jsRuOek1lxbPTRAEIBMtahqU0nNTgxxjg+jp+t AnuYkOgLi+dRYn0G18ydc59+A0EdlnB+P8HprHOxu0ftZyQZ7Qj7J2K78Qs6nZivAdnv AYLg== X-Gm-Message-State: ALoCoQmSBPtlpBos3sJhXzqI9KxIZSHgiwxV5e++PhplvXG9JrERhZ52Auc4DU25y7epIo6/tXmP X-Received: by 10.55.48.11 with SMTP id w11mr64549995qkw.61.1434994561577; Mon, 22 Jun 2015 10:36:01 -0700 (PDT) Received: from [10.252.9.177] ([64.124.192.210]) by mx.google.com with ESMTPSA id a75sm127668qge.3.2015.06.22.10.35.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 10:35:59 -0700 (PDT) Message-ID: <5588477E.7050109@lerdorf.com> Date: Mon, 22 Jun 2015 13:35:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Dmitry Stogov CC: Bob Weinand , Anatol Belski , Kalle Sommer Nielsen , Stanislav Malyshev , Nikita Popov , PHP internals 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> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O2PBjo7QM3g1Kv1MfcJVkb3j0ejG9bF8u" Subject: Re: [PHP-DEV] hasType() for internal function parameters? From: rasmus@lerdorf.com (Rasmus Lerdorf) --O2PBjo7QM3g1Kv1MfcJVkb3j0ejG9bF8u Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/22/2015 01:27 PM, Dmitry Stogov wrote: > Actually, when you added type hints, php compiler stopped optimizing an= d > 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. -Rasmus --O2PBjo7QM3g1Kv1MfcJVkb3j0ejG9bF8u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWIR34ACgkQlxayKTuqOuDWSgCbBnUPGmOuJKPhIKZXO66SGJBK GIwAn0K1839Z6tcTK6Lc5zMFtjMMyeKD =Tm5z -----END PGP SIGNATURE----- --O2PBjo7QM3g1Kv1MfcJVkb3j0ejG9bF8u--