Re: Change output of gettype?

From: Date: Tue, 02 Dec 2025 13:45:42 +0000
Subject: Re: Change output of gettype?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-129509@lists.php.net to get a copy of this message
> And if I remember correctly, that's exactly why get_debug_type() was > introduced: no BC break, and it does the job. > > You should simply use get_debug_type() everywhere and never use > gettype() ever again. This is the most sensible move you can make, it > really is the function you should use in most case. Ah! I've never heard of this function before in my last 25 years of PHP ^^ I'll open a PR to change the doc about gettype to make it clearer in the gettype page that get_debug_type should be used in priority. Thanks.

« previous php.internals (#129509) next »