rfc:get_debug_type
This is an old revision of the document!
PHP RFC: get_debug_type
- Version: 1
- Date: 2020-02-15
- Author: Mark Randall, mrandall@php.net
- Status: Draft
- First Published at: https://wiki.php.net/rfc/get_debug_type
Proposal
This RFC proposes to add a new function get_debug_type that will return the given type of a variable.
This function would differ from gettype in that it would return native type names, “int” rather than “integer” and would automatically resolve class names.
Backward Incompatible Changes
None
Proposed PHP Version(s)
PHP 8.0
Proposed Voting Choices
A straight yes / no vote on adding the new function.
Should resource names be resolved? Would appear as resource(resource_type).
(Optional) A vote on the name, if there is not a clear majority consensus during RFC discussion.
Implementation
References
Initial discussion @ https://github.com/php/php-src/pull/5143
rfc/get_debug_type.1581776089.txt.gz · Last modified: 2020/02/15 14:14 by marandall