@@ -379,11 +379,11 @@ static zend_result php_mb_parse_encoding_list(const char *value, size_t value_le
379
379
}
380
380
/* }}} */
381
381
382
- /* {{{ static int php_mb_parse_encoding_array()
382
+ /* {{{
383
383
* Return FAILURE if input contains any illegal encoding, otherwise SUCCESS.
384
384
* Emits a ValueError in function context and a warning in INI context, in INI context arg_num must be 0.
385
385
*/
386
- static int php_mb_parse_encoding_array (HashTable * target_hash , const mbfl_encoding * * * return_list ,
386
+ static zend_result php_mb_parse_encoding_array (HashTable * target_hash , const mbfl_encoding * * * return_list ,
387
387
size_t * return_size , uint32_t arg_num )
388
388
{
389
389
/* Allocate enough space to include the default detect order if "auto" is used. */
@@ -728,7 +728,7 @@ static PHP_INI_MH(OnUpdate_mbstring_detect_order)
728
728
}
729
729
/* }}} */
730
730
731
- static int _php_mb_ini_mbstring_http_input_set (const char * new_value , size_t new_value_length ) {
731
+ static zend_result _php_mb_ini_mbstring_http_input_set (const char * new_value , size_t new_value_length ) {
732
732
const mbfl_encoding * * list ;
733
733
size_t size ;
734
734
if (FAILURE == php_mb_parse_encoding_list (new_value , new_value_length , & list , & size , /* persistent */ 1 , /* arg_num */ 0 , /* allow_pass_encoding */ 1 ) || size == 0 ) {
@@ -761,7 +761,7 @@ static PHP_INI_MH(OnUpdate_mbstring_http_input)
761
761
}
762
762
/* }}} */
763
763
764
- static int _php_mb_ini_mbstring_http_output_set (const char * new_value ) {
764
+ static zend_result _php_mb_ini_mbstring_http_output_set (const char * new_value ) {
765
765
const mbfl_encoding * encoding = php_mb_get_encoding_or_pass (new_value );
766
766
if (!encoding ) {
767
767
return FAILURE ;
@@ -791,7 +791,7 @@ static PHP_INI_MH(OnUpdate_mbstring_http_output)
791
791
/* }}} */
792
792
793
793
/* {{{ static _php_mb_ini_mbstring_internal_encoding_set */
794
- static int _php_mb_ini_mbstring_internal_encoding_set (const char * new_value , size_t new_value_length )
794
+ static zend_result _php_mb_ini_mbstring_internal_encoding_set (const char * new_value , size_t new_value_length )
795
795
{
796
796
const mbfl_encoding * encoding ;
797
797
0 commit comments