@@ -1193,7 +1193,7 @@ PHP_FUNCTION(mb_language)
1193
1193
1194
1194
ZEND_PARSE_PARAMETERS_START (0 , 1 )
1195
1195
Z_PARAM_OPTIONAL
1196
- Z_PARAM_STR (name )
1196
+ Z_PARAM_STR_OR_NULL (name )
1197
1197
ZEND_PARSE_PARAMETERS_END ();
1198
1198
1199
1199
if (name == NULL ) {
@@ -1221,7 +1221,7 @@ PHP_FUNCTION(mb_internal_encoding)
1221
1221
1222
1222
ZEND_PARSE_PARAMETERS_START (0 , 1 )
1223
1223
Z_PARAM_OPTIONAL
1224
- Z_PARAM_STRING (name , name_len )
1224
+ Z_PARAM_STRING_OR_NULL (name , name_len )
1225
1225
ZEND_PARSE_PARAMETERS_END ();
1226
1226
1227
1227
if (name == NULL ) {
@@ -1252,7 +1252,7 @@ PHP_FUNCTION(mb_http_input)
1252
1252
1253
1253
ZEND_PARSE_PARAMETERS_START (0 , 1 )
1254
1254
Z_PARAM_OPTIONAL
1255
- Z_PARAM_STRING (type , type_len )
1255
+ Z_PARAM_STRING_OR_NULL (type , type_len )
1256
1256
ZEND_PARSE_PARAMETERS_END ();
1257
1257
1258
1258
if (type == NULL ) {
@@ -1328,7 +1328,7 @@ PHP_FUNCTION(mb_http_output)
1328
1328
1329
1329
ZEND_PARSE_PARAMETERS_START (0 , 1 )
1330
1330
Z_PARAM_OPTIONAL
1331
- Z_PARAM_STRING (name , name_len )
1331
+ Z_PARAM_STRING_OR_NULL (name , name_len )
1332
1332
ZEND_PARSE_PARAMETERS_END ();
1333
1333
1334
1334
if (name == NULL ) {
@@ -1866,7 +1866,7 @@ PHP_FUNCTION(mb_strpos)
1866
1866
Z_PARAM_STRING (needle_val , needle .len )
1867
1867
Z_PARAM_OPTIONAL
1868
1868
Z_PARAM_LONG (offset )
1869
- Z_PARAM_STR (enc_name )
1869
+ Z_PARAM_STR_OR_NULL (enc_name )
1870
1870
ZEND_PARSE_PARAMETERS_END ();
1871
1871
1872
1872
haystack .val = (unsigned char * )haystack_val ;
@@ -1900,7 +1900,7 @@ PHP_FUNCTION(mb_strrpos)
1900
1900
Z_PARAM_STRING (needle_val , needle .len )
1901
1901
Z_PARAM_OPTIONAL
1902
1902
Z_PARAM_LONG (offset )
1903
- Z_PARAM_STR (enc_name )
1903
+ Z_PARAM_STR_OR_NULL (enc_name )
1904
1904
ZEND_PARSE_PARAMETERS_END ();
1905
1905
1906
1906
haystack .val = (unsigned char * )haystack_val ;
@@ -1934,7 +1934,7 @@ PHP_FUNCTION(mb_stripos)
1934
1934
Z_PARAM_STRING (needle_val , needle .len )
1935
1935
Z_PARAM_OPTIONAL
1936
1936
Z_PARAM_LONG (offset )
1937
- Z_PARAM_STR (from_encoding )
1937
+ Z_PARAM_STR_OR_NULL (from_encoding )
1938
1938
ZEND_PARSE_PARAMETERS_END ();
1939
1939
1940
1940
haystack .val = (unsigned char * )haystack_val ;
@@ -1969,7 +1969,7 @@ PHP_FUNCTION(mb_strripos)
1969
1969
Z_PARAM_STRING (needle_val , needle .len )
1970
1970
Z_PARAM_OPTIONAL
1971
1971
Z_PARAM_LONG (offset )
1972
- Z_PARAM_STR (from_encoding )
1972
+ Z_PARAM_STR_OR_NULL (from_encoding )
1973
1973
ZEND_PARSE_PARAMETERS_END ();
1974
1974
1975
1975
haystack .val = (unsigned char * )haystack_val ;
@@ -2010,7 +2010,7 @@ static void php_mb_strstr_variants(INTERNAL_FUNCTION_PARAMETERS, unsigned int va
2010
2010
Z_PARAM_STRING (needle_val , needle .len )
2011
2011
Z_PARAM_OPTIONAL
2012
2012
Z_PARAM_BOOL (part )
2013
- Z_PARAM_STR (encoding_name )
2013
+ Z_PARAM_STR_OR_NULL (encoding_name )
2014
2014
ZEND_PARSE_PARAMETERS_END ();
2015
2015
2016
2016
haystack .val = (unsigned char * )haystack_val ;
@@ -2093,7 +2093,7 @@ PHP_FUNCTION(mb_substr_count)
2093
2093
Z_PARAM_STRING (haystack_val , haystack .len )
2094
2094
Z_PARAM_STRING (needle_val , needle .len )
2095
2095
Z_PARAM_OPTIONAL
2096
- Z_PARAM_STR (enc_name )
2096
+ Z_PARAM_STR_OR_NULL (enc_name )
2097
2097
ZEND_PARSE_PARAMETERS_END ();
2098
2098
2099
2099
haystack .val = (unsigned char * )haystack_val ;
@@ -2135,7 +2135,7 @@ PHP_FUNCTION(mb_substr)
2135
2135
Z_PARAM_LONG (from )
2136
2136
Z_PARAM_OPTIONAL
2137
2137
Z_PARAM_LONG_OR_NULL (len , len_is_null )
2138
- Z_PARAM_STR (encoding )
2138
+ Z_PARAM_STR_OR_NULL (encoding )
2139
2139
ZEND_PARSE_PARAMETERS_END ();
2140
2140
2141
2141
string .encoding = php_mb_get_encoding (encoding , 4 );
@@ -2199,7 +2199,7 @@ PHP_FUNCTION(mb_strcut)
2199
2199
Z_PARAM_LONG (from )
2200
2200
Z_PARAM_OPTIONAL
2201
2201
Z_PARAM_LONG_OR_NULL (len , len_is_null )
2202
- Z_PARAM_STR (encoding )
2202
+ Z_PARAM_STR_OR_NULL (encoding )
2203
2203
ZEND_PARSE_PARAMETERS_END ();
2204
2204
2205
2205
string .val = (unsigned char * )string_val ;
@@ -2255,7 +2255,7 @@ PHP_FUNCTION(mb_strwidth)
2255
2255
ZEND_PARSE_PARAMETERS_START (1 , 2 )
2256
2256
Z_PARAM_STRING (string_val , string .len )
2257
2257
Z_PARAM_OPTIONAL
2258
- Z_PARAM_STR (enc_name )
2258
+ Z_PARAM_STR_OR_NULL (enc_name )
2259
2259
ZEND_PARSE_PARAMETERS_END ();
2260
2260
2261
2261
string .val = (unsigned char * )string_val ;
@@ -2285,7 +2285,7 @@ PHP_FUNCTION(mb_strimwidth)
2285
2285
Z_PARAM_LONG (width )
2286
2286
Z_PARAM_OPTIONAL
2287
2287
Z_PARAM_STRING (trimmarker , trimmarker_len )
2288
- Z_PARAM_STR (encoding )
2288
+ Z_PARAM_STR_OR_NULL (encoding )
2289
2289
ZEND_PARSE_PARAMETERS_END ();
2290
2290
2291
2291
string .encoding = marker .encoding = php_mb_get_encoding (encoding , 5 );
@@ -2587,7 +2587,7 @@ PHP_FUNCTION(mb_convert_case)
2587
2587
Z_PARAM_STRING (str , str_len )
2588
2588
Z_PARAM_LONG (case_mode )
2589
2589
Z_PARAM_OPTIONAL
2590
- Z_PARAM_STR (from_encoding )
2590
+ Z_PARAM_STR_OR_NULL (from_encoding )
2591
2591
ZEND_PARSE_PARAMETERS_END ();
2592
2592
2593
2593
const mbfl_encoding * enc = php_mb_get_encoding (from_encoding , 3 );
@@ -2620,7 +2620,7 @@ PHP_FUNCTION(mb_strtoupper)
2620
2620
ZEND_PARSE_PARAMETERS_START (1 , 2 )
2621
2621
Z_PARAM_STRING (str , str_len )
2622
2622
Z_PARAM_OPTIONAL
2623
- Z_PARAM_STR (from_encoding )
2623
+ Z_PARAM_STR_OR_NULL (from_encoding )
2624
2624
ZEND_PARSE_PARAMETERS_END ();
2625
2625
2626
2626
const mbfl_encoding * enc = php_mb_get_encoding (from_encoding , 2 );
@@ -2651,7 +2651,7 @@ PHP_FUNCTION(mb_strtolower)
2651
2651
ZEND_PARSE_PARAMETERS_START (1 , 2 )
2652
2652
Z_PARAM_STRING (str , str_len )
2653
2653
Z_PARAM_OPTIONAL
2654
- Z_PARAM_STR (from_encoding )
2654
+ Z_PARAM_STR_OR_NULL (from_encoding )
2655
2655
ZEND_PARSE_PARAMETERS_END ();
2656
2656
2657
2657
enc = php_mb_get_encoding (from_encoding , 2 );
@@ -2864,7 +2864,7 @@ PHP_FUNCTION(mb_convert_kana)
2864
2864
Z_PARAM_STRING (string_val , string .len )
2865
2865
Z_PARAM_OPTIONAL
2866
2866
Z_PARAM_STRING (optstr , optstr_len )
2867
- Z_PARAM_STR (encname )
2867
+ Z_PARAM_STR_OR_NULL (encname )
2868
2868
ZEND_PARSE_PARAMETERS_END ();
2869
2869
2870
2870
string .val = (unsigned char * )string_val ;
@@ -3195,7 +3195,7 @@ PHP_FUNCTION(mb_encode_numericentity)
3195
3195
Z_PARAM_STRING (str , string .len )
3196
3196
Z_PARAM_ARRAY_HT (target_hash )
3197
3197
Z_PARAM_OPTIONAL
3198
- Z_PARAM_STR (encoding )
3198
+ Z_PARAM_STR_OR_NULL (encoding )
3199
3199
Z_PARAM_BOOL (is_hex )
3200
3200
ZEND_PARSE_PARAMETERS_END ();
3201
3201
@@ -3232,7 +3232,7 @@ PHP_FUNCTION(mb_decode_numericentity)
3232
3232
Z_PARAM_STRING (str , string .len )
3233
3233
Z_PARAM_ARRAY_HT (target_hash )
3234
3234
Z_PARAM_OPTIONAL
3235
- Z_PARAM_STR (encoding )
3235
+ Z_PARAM_STR_OR_NULL (encoding )
3236
3236
ZEND_PARSE_PARAMETERS_END ();
3237
3237
3238
3238
string .val = (unsigned char * )str ;
0 commit comments