Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97337 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38843 invoked from network); 8 Dec 2016 01:50:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2016 01:50:11 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:40146] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/53-11772-25CB8485 for ; Wed, 07 Dec 2016 20:50:11 -0500 Received: (qmail 25165 invoked by uid 89); 8 Dec 2016 01:50:06 -0000 Received: from unknown (HELO mail-wj0-f181.google.com) (yohgaki@ohgaki.net@209.85.210.181) by 0 with ESMTPA; 8 Dec 2016 01:50:06 -0000 Received: by mail-wj0-f181.google.com with SMTP id xy5so376592529wjc.0 for ; Wed, 07 Dec 2016 17:50:04 -0800 (PST) X-Gm-Message-State: AKaTC02xFQiTmeowlm9v0Fo0NEo+PEfsyqXN3M8HQQiUO0l7X3GjIJQwZYUdn+tYMu9w4oX+biI7CsM2telrKA== X-Received: by 10.194.231.8 with SMTP id tc8mr60933844wjc.193.1481161798409; Wed, 07 Dec 2016 17:49:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.38.7 with HTTP; Wed, 7 Dec 2016 17:49:17 -0800 (PST) In-Reply-To: References: Date: Thu, 8 Dec 2016 10:49:17 +0900 X-Gmail-Original-Message-ID: Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: Internal function/method data type validation practice? From: yohgaki@ohgaki.net (Yasuo Ohgaki) On Thu, Dec 8, 2016 at 10:34 AM, Yasuo Ohgaki wrote: > > What's the best practice of internal function and method data type > validation, both parameter and return types? Sorry, question is confusing. I'm trying to validate data types of callbacks which could be both user defined and internal function/method. What's the best way with master? Thank you. -- Yasuo Ohgaki yohgaki@ohgaki.net