Skip to content

Commit e1686aa

Browse files
committed
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.
1 parent 2d3db4b commit e1686aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/iconv/php_iconv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ZEND_TSRMLS_CACHE_EXTERN()
6767

6868
/* {{{ typedef enum php_iconv_err_t */
6969
typedef enum _php_iconv_err_t {
70-
PHP_ICONV_ERR_SUCCESS = SUCCESS,
70+
PHP_ICONV_ERR_SUCCESS = 0,
7171
PHP_ICONV_ERR_CONVERTER = 1,
7272
PHP_ICONV_ERR_WRONG_CHARSET = 2,
7373
PHP_ICONV_ERR_TOO_BIG = 3,

0 commit comments

Comments
 (0)