From e1686aabf776f18faecbda19d808edac406721f7 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 11 Apr 2025 23:09:17 +0100 Subject: [PATCH] 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. --- ext/iconv/php_iconv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/iconv/php_iconv.h b/ext/iconv/php_iconv.h index 7bc1cce0df9..fcabdfaf644 100644 --- a/ext/iconv/php_iconv.h +++ b/ext/iconv/php_iconv.h @@ -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,