Re: [RFC] get_debug_type

From: Date: Mon, 17 Feb 2020 08:42:36 +0000
Subject: Re: [RFC] get_debug_type
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-108638@lists.php.net to get a copy of this message
On Sat, Feb 15, 2020 at 4:07 PM Nikita Popov <nikita.ppv@gmail.com> wrote: > On Sat, Feb 15, 2020 at 3:33 PM Mark Randall <markyr@gmail.com> wrote: > >> Greetings, >> >> I offer a short RFC to add a new function, get_debug_type, which would >> return the type name of a variable, automatically resolving the class >> name in the event of it being an object. >> >> Unlike gettype, this function will return the true name of scalar >> types, rather than their aliases, thus get_debug_type will return >> "int" rather than "integer" etc. >> >> https://wiki.php.net/rfc/get_debug_type >> >> Mark Randall >> marandall@php.net >> > > Can you please add some examples for the behavior? Preferably the precise > output for all primitive types, for classes and for anonymous classes. > > Regards, > Nikita > ping

« previous php.internals (#108638) next »