ext/iconv: Hardcode 0 for PHP_ICONV_ERR_SUCCESS value

Instead of relying on the zend_result SUCCESS value which doesn't have much to do with it here.
This commit is contained in:
Gina Peter Banyard 2025-04-11 23:09:17 +01:00
parent 2d3db4b594
commit e1686aabf7

View file

@ -67,7 +67,7 @@ ZEND_TSRMLS_CACHE_EXTERN()
/* {{{ typedef enum php_iconv_err_t */
typedef enum _php_iconv_err_t {
PHP_ICONV_ERR_SUCCESS = SUCCESS,
PHP_ICONV_ERR_SUCCESS = 0,
PHP_ICONV_ERR_CONVERTER = 1,
PHP_ICONV_ERR_WRONG_CHARSET = 2,
PHP_ICONV_ERR_TOO_BIG = 3,