Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59384 invoked from network); 5 Feb 2015 04:01:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 04:01:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.177 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:63247] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/01-51979-B2BE2D45 for ; Wed, 04 Feb 2015 23:01:47 -0500 Received: by mail-we0-f177.google.com with SMTP id l61so5348950wev.8 for ; Wed, 04 Feb 2015 20:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=LC9N083CJilY9jGtXEJqg/mDVXy6g7/XfQUvxwp14vU=; b=ZTJc4C8VtRxvwuSaf48muQtox07j8quVPyJ6vGaN/9Ik1QEjqLviSIAG+vP9o+5XRR vLKFu624yXv76Ce1cAZvgMZQCklJfAH4ro/zquSKC6bgOCy+ASxSK4+J70Y1/efzGZiG jRvKEFnjqAodI2ldnQ0N+f+Mk/yUD/ve4v+bv8gL5sXHfBVU7Yxa88S1kKThG2xno3lN 6T5DjZxDsHbjdejCNuO7HWcDfsqoOdNbpNEKEylRzoof+BHA5LUeFLLFUdDI2Tuks0bB MsmhynEQ/1zBF9nSM7hnxNZy3UFwtjFVOQvsZJEm7b21ggOHgklvWGTKXLp6jpe4eufG ttQA== X-Received: by 10.194.123.229 with SMTP id md5mr2831744wjb.149.1423108903525; Wed, 04 Feb 2015 20:01:43 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.195.12.163 with HTTP; Wed, 4 Feb 2015 20:01:23 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Feb 2015 12:01:23 +0800 X-Google-Sender-Auth: 0DpBmj6qJoUGVFVAPOnt-VcJpqQ Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0122ae36abe34c050e4f5cbe Subject: Re: [RFC] Support internal function return types From: reeze@php.net (reeze) --089e0122ae36abe34c050e4f5cbe Content-Type: text/plain; charset=ISO-8859-1 PS: There is no enough unit tests to cover all of the branches, if we want then I have to add a bunch of for testing functions and classes in ZEND_DEBUG, what is the better way? On 5 February 2015 at 11:54, reeze wrote: > Hi all, > > RFC: https://wiki.php.net/rfc/internal_function_return_types > > I noticed that return types RFC[1] didn't support internal functions, I > just open a PR[2] to support it. > > There are some open issues we can discuss: > > 1. User land return types didn't stop the php, the current implementation > raise error to stop PHP from start, this may help debug problem. > 2. User land return types didn't support Nullable types, but the RFC > return types internally support it, I think it is feature. is that > acceptable? > > Thank you. > > --- > > [1] https://wiki.php.net/rfc/return_types > [2] https://github.com/php/php-src/pull/1050 > --089e0122ae36abe34c050e4f5cbe--