Lines Matching refs:y

277 	size_t x, y;  in php_escape_shell_cmd()  local
297 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
304 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
305 y += mb_len; in php_escape_shell_cmd()
319 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
321 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
354 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
356 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
360 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
364 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
366 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
372 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
375 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
378 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
387 size_t x, y = 0; in php_escape_shell_arg() local
405 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
407 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
417 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
418 y += mb_len; in php_escape_shell_arg()
428 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
432 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
433 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
434 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
438 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
442 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
443 int k = 0, n = y - 1; in php_escape_shell_arg()
446 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
450 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
452 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
454 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
456 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
462 if ((estimate - y) > 4096) { in php_escape_shell_arg()
465 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
467 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()