Lines Matching refs:y

290 	register int x, y;  in php_escape_shell_cmd()  local
306 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
313 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_cmd()
314 y += mb_len; in php_escape_shell_cmd()
328 cmd[y++] = '\\'; in php_escape_shell_cmd()
330 cmd[y++] = str[x]; in php_escape_shell_cmd()
363 cmd[y++] = '^'; in php_escape_shell_cmd()
365 cmd[y++] = '\\'; in php_escape_shell_cmd()
369 cmd[y++] = str[x]; in php_escape_shell_cmd()
373 cmd[y] = '\0'; in php_escape_shell_cmd()
375 if (y - 1 > cmd_max_len) { in php_escape_shell_cmd()
381 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
384 cmd = erealloc(cmd, y + 1); in php_escape_shell_cmd()
395 int x, y = 0; in php_escape_shell_arg() local
411 cmd[y++] = '"'; in php_escape_shell_arg()
413 cmd[y++] = '\''; in php_escape_shell_arg()
423 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_arg()
424 y += mb_len; in php_escape_shell_arg()
434 cmd[y++] = ' '; in php_escape_shell_arg()
438 cmd[y++] = '\''; in php_escape_shell_arg()
439 cmd[y++] = '\\'; in php_escape_shell_arg()
440 cmd[y++] = '\''; in php_escape_shell_arg()
444 cmd[y++] = str[x]; in php_escape_shell_arg()
448 if (y > 0 && '\\' == cmd[y - 1]) { in php_escape_shell_arg()
449 int k = 0, n = y - 1; in php_escape_shell_arg()
452 cmd[y++] = '\\'; in php_escape_shell_arg()
456 cmd[y++] = '"'; in php_escape_shell_arg()
458 cmd[y++] = '\''; in php_escape_shell_arg()
460 cmd[y] = '\0'; in php_escape_shell_arg()
462 if (y - 1 > cmd_max_len) { in php_escape_shell_arg()
468 if ((estimate - y) > 4096) { in php_escape_shell_arg()
471 cmd = erealloc(cmd, y + 1); in php_escape_shell_arg()