Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63198 invoked from network); 21 Jun 2015 22:09:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2015 22:09:15 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.169 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.169 mail-pd0-f169.google.com Received: from [209.85.192.169] ([209.85.192.169:33843] helo=mail-pd0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/01-57034-A0637855 for ; Sun, 21 Jun 2015 18:09:14 -0400 Received: by pdbki1 with SMTP id ki1so125514929pdb.1 for ; Sun, 21 Jun 2015 15:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=BskWplfs3Ur951lskFB3IQ5WWp2NJd9TtXOK2BlZt08=; b=uCer2Y6zu/5gbi+99Sez0qpnzJVxWcmKSnXB4idwPe+Ha39Ke/XirW3ZGwhRqNVP5y lZLXE0BR85MZ0LwzFIjrNRLp1EWyIJ2PYjACa50zXdTNsfs2bfDwl8mFGfOWllM7HCyu raiz6eGP3o2KAyTLSOMt+Y9m1t3oOezsowN78inO3AFe9iy7QfzsEA9AWXGo8QYgDUS1 IQpSAdvH3Jj0Na8roGJwzd/AsFQa2rNrIR7KD1hC+/4SPstilKUcVlToQ+qZAgAarfK/ EFOWOJ8jJjRNujUPD0waHIBki3lVyrJPSMn3qwFEoxt2fng4RwTsAQ/ml4VnOhUEKYmM 9d2w== X-Received: by 10.70.90.232 with SMTP id bz8mr39907536pdb.120.1434924551911; Sun, 21 Jun 2015 15:09:11 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id zs5sm17657695pac.11.2015.06.21.15.09.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2015 15:09:10 -0700 (PDT) Message-ID: <55873602.3040607@gmail.com> Date: Sun, 21 Jun 2015 15:09:06 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Nikita Popov , Rasmus Lerdorf CC: PHP internals References: <5586E5D1.4010901@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] hasType() for internal function parameters? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The difference here is that ustrlen() has an argument type specified in > arginfo, while strlen() triggers an error through zend_parse_parameters(). > We have practically no arginfo-level type annotations in the standard > library. I think we should start doing this. Of course, some functions have complicated arguments and we can leave it alone for now, but those that have a clear type we should make arginfo reflect it. -- Stas Malyshev smalyshev@gmail.com