Re: Internal function/method data type validation practice?

From: Date: Sat, 10 Dec 2016 09:19:41 +0000
Subject: Re: Internal function/method data type validation practice?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-97351@lists.php.net to get a copy of this message
On Thu, Dec 8, 2016 at 10:34 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > What's the best practice of internal function and method data type > validation, both parameter and return types? > > Although it seems it is possible to retrieve parameter/return types, > there is no APIs defined in Zend according to ext/reflection or I must > have missed something. > > Thank you. It seems there isn't clean and easy way to introspect and validate parameters and return type currently. I'll forget about validating to be registered callback functions/methods parameter and return type for the time being. If you have suggestions, I appreciate it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#97351) next »