Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81858 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57350 invoked from network); 5 Feb 2015 03:54:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 03:54:27 -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.175 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.175 mail-we0-f175.google.com Received: from [74.125.82.175] ([74.125.82.175:40505] helo=mail-we0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/A0-51979-179E2D45 for ; Wed, 04 Feb 2015 22:54:25 -0500 Received: by mail-we0-f175.google.com with SMTP id p10so5373228wes.6 for ; Wed, 04 Feb 2015 19:54:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=J0ZWF3/jaVOU6x9ONrIKbU+dvoZ7cZfp/Jx/uRv15Sg=; b=sT2c+QpElT80F06EGN9BUfS5PZa0OwTCGciqnLVO58gdlVdbVPWkX9Yn7lRjDka+Zc W7HCGz4VOg2KkOIB6eCS0OHDI16LRKXoUEm5qfNzJ92bgBPgXEux6EXHJs+t3tUH0PZN ZAr3YzqsurA4CYn+mKLzce7WfP+0dZ9lSH2zm7vhnUy/1BPObZaKbb45SWPUnuFhFR1n +9inj+AH7q4xWDf8PPYrzKUGzTTRVEVpplL5UIzxmiRA7EeC/ezRbPNFJ0fX1QELI9je Z5cy0wSCKGwew3xlAe7LV8u/f9Lteg2Jn9qm7ob1dTKKGcFfcxH85w6u4bPZFvpNskWS 0r6g== X-Received: by 10.180.88.103 with SMTP id bf7mr11104494wib.21.1423108462508; Wed, 04 Feb 2015 19:54:22 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.195.12.163 with HTTP; Wed, 4 Feb 2015 19:54:02 -0800 (PST) Date: Thu, 5 Feb 2015 11:54:02 +0800 X-Google-Sender-Auth: 1TmuMdPX7JY-rJFMrMkOjIj2-2g Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d04428dec628192050e4f42e3 Subject: [RFC] Support internal function return types From: reeze@php.net (reeze) --f46d04428dec628192050e4f42e3 Content-Type: text/plain; charset=ISO-8859-1 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 --f46d04428dec628192050e4f42e3--