Re: [RFC] is_countable

From: Date: Mon, 22 Jan 2018 16:45:55 +0000
Subject: Re: [RFC] is_countable
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-101656@lists.php.net to get a copy of this message
Hi Johannes, thanks for your feedback! Can I ask you to elaborate (or maybe share a link where can I study and improve) more about the Reflection part? Sorry if it’s sounds trivial, is because I’m new to internals 😄 Em seg, 22 de jan de 2018 às 10:34, Johannes Schlüter < johannes@schlueters.de> escreveu: > Hi, > > On So, 2018-01-21 at 18:01 +0000, Gabriel Caruso wrote: > > After that, I like to propose and discuss a new function for PHP 7.x > > (current 7.3): is_countable. > > > > *RFC*: https://wiki.php.net/rfc/is-countable. > > The primary place for this imo should be reflection. If there is high > demand we could also add a shortcut function like proposed (no strong > opinion on this either way from my side) > > Of course I notice that the current reflection can't cover all the > cases you want to cover, so maybe it might be interesting to extend > reflection with something which works on all variables/zval and wraps > all the is_* functions. > > johannes > > -- Gabriel Caruso

« previous php.internals (#101656) next »