Lines Matching refs:mb_len
305 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() local
308 if (mb_len < 0) { in php_escape_shell_cmd()
310 } else if (mb_len > 1) { in php_escape_shell_cmd()
311 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
312 y += mb_len; in php_escape_shell_cmd()
313 x += mb_len - 1; in php_escape_shell_cmd()
415 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() local
418 if (mb_len < 0) { in php_escape_shell_arg()
420 } else if (mb_len > 1) { in php_escape_shell_arg()
421 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
422 y += mb_len; in php_escape_shell_arg()
423 x += mb_len - 1; in php_escape_shell_arg()