ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(name)
+ Z_PARAM_STR_OR_NULL(name)
ZEND_PARSE_PARAMETERS_END();
if (name == NULL) {
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_STRING(name, name_len)
+ Z_PARAM_STRING_OR_NULL(name, name_len)
ZEND_PARSE_PARAMETERS_END();
if (name == NULL) {
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_STRING(type, type_len)
+ Z_PARAM_STRING_OR_NULL(type, type_len)
ZEND_PARSE_PARAMETERS_END();
if (type == NULL) {
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
- Z_PARAM_STRING(name, name_len)
+ Z_PARAM_STRING_OR_NULL(name, name_len)
ZEND_PARSE_PARAMETERS_END();
if (name == NULL) {
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(offset)
- Z_PARAM_STR(enc_name)
+ Z_PARAM_STR_OR_NULL(enc_name)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(offset)
- Z_PARAM_STR(enc_name)
+ Z_PARAM_STR_OR_NULL(enc_name)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(offset)
- Z_PARAM_STR(from_encoding)
+ Z_PARAM_STR_OR_NULL(from_encoding)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(offset)
- Z_PARAM_STR(from_encoding)
+ Z_PARAM_STR_OR_NULL(from_encoding)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
Z_PARAM_BOOL(part)
- Z_PARAM_STR(encoding_name)
+ Z_PARAM_STR_OR_NULL(encoding_name)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_STRING(haystack_val, haystack.len)
Z_PARAM_STRING(needle_val, needle.len)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(enc_name)
+ Z_PARAM_STR_OR_NULL(enc_name)
ZEND_PARSE_PARAMETERS_END();
haystack.val = (unsigned char*)haystack_val;
Z_PARAM_LONG(from)
Z_PARAM_OPTIONAL
Z_PARAM_LONG_OR_NULL(len, len_is_null)
- Z_PARAM_STR(encoding)
+ Z_PARAM_STR_OR_NULL(encoding)
ZEND_PARSE_PARAMETERS_END();
string.encoding = php_mb_get_encoding(encoding, 4);
Z_PARAM_LONG(from)
Z_PARAM_OPTIONAL
Z_PARAM_LONG_OR_NULL(len, len_is_null)
- Z_PARAM_STR(encoding)
+ Z_PARAM_STR_OR_NULL(encoding)
ZEND_PARSE_PARAMETERS_END();
string.val = (unsigned char*)string_val;
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(string_val, string.len)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(enc_name)
+ Z_PARAM_STR_OR_NULL(enc_name)
ZEND_PARSE_PARAMETERS_END();
string.val = (unsigned char*)string_val;
Z_PARAM_LONG(width)
Z_PARAM_OPTIONAL
Z_PARAM_STRING(trimmarker, trimmarker_len)
- Z_PARAM_STR(encoding)
+ Z_PARAM_STR_OR_NULL(encoding)
ZEND_PARSE_PARAMETERS_END();
string.encoding = marker.encoding = php_mb_get_encoding(encoding, 5);
Z_PARAM_STRING(str, str_len)
Z_PARAM_LONG(case_mode)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(from_encoding)
+ Z_PARAM_STR_OR_NULL(from_encoding)
ZEND_PARSE_PARAMETERS_END();
const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 3);
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(str, str_len)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(from_encoding)
+ Z_PARAM_STR_OR_NULL(from_encoding)
ZEND_PARSE_PARAMETERS_END();
const mbfl_encoding *enc = php_mb_get_encoding(from_encoding, 2);
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(str, str_len)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(from_encoding)
+ Z_PARAM_STR_OR_NULL(from_encoding)
ZEND_PARSE_PARAMETERS_END();
enc = php_mb_get_encoding(from_encoding, 2);
Z_PARAM_STRING(string_val, string.len)
Z_PARAM_OPTIONAL
Z_PARAM_STRING(optstr, optstr_len)
- Z_PARAM_STR(encname)
+ Z_PARAM_STR_OR_NULL(encname)
ZEND_PARSE_PARAMETERS_END();
string.val = (unsigned char*)string_val;
Z_PARAM_STRING(str, string.len)
Z_PARAM_ARRAY_HT(target_hash)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(encoding)
+ Z_PARAM_STR_OR_NULL(encoding)
Z_PARAM_BOOL(is_hex)
ZEND_PARSE_PARAMETERS_END();
Z_PARAM_STRING(str, string.len)
Z_PARAM_ARRAY_HT(target_hash)
Z_PARAM_OPTIONAL
- Z_PARAM_STR(encoding)
+ Z_PARAM_STR_OR_NULL(encoding)
ZEND_PARSE_PARAMETERS_END();
string.val = (unsigned char *)str;