-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
PHP Drivers
-
Not Needed
-
The PHONGO_ZVAL_CLASS_OR_TYPE_NAME_P macro in php_phongo.h can be replaced with zend_zval_type_name(). There is also a zend_zval_value_name() macro (since php/php-src@7936c80), but that is only available in PHP 8.3+.
PHONGO_ZVAL_CLASS_OR_TYPE_NAME can simply be removed, as that macro was only ever called with a dereferenced zval pointer.
Note that zend_zval_type_name() also applies ZVAL_DEREF to resolve zval references automatically, which is relevant to some recent issues discovered in PHPC-2457.
- is related to
-
PHPC-2457 Error when "modifiers" option is passed by reference
- Closed