diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-13 14:46:15 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-13 14:56:05 +0200 |
commit | 3f51d82bcabdd9c42d518758a68a4431e20f3e28 (patch) | |
tree | c2af9826a45f21fee3d77924b92ad3f50180fc5d /ext/standard/type.c | |
parent | 256b7da356c7c33f75f72705dcea264de3f45923 (diff) | |
download | php-git-3f51d82bcabdd9c42d518758a68a4431e20f3e28.tar.gz |
Rename zend_zval_get_type() API
We have a bunch of APIs for getting type names and it's sometimes
hard to keep them apart ... make it clear that this is the one
you definitely do not want to use.
Diffstat (limited to 'ext/standard/type.c')
-rw-r--r-- | ext/standard/type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/type.c b/ext/standard/type.c index 915fa2414d..7424aea426 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -28,7 +28,7 @@ PHP_FUNCTION(gettype) Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); - type = zend_zval_get_type(arg); + type = zend_zval_get_legacy_type(arg); if (EXPECTED(type)) { RETURN_INTERNED_STR(type); } else { |