Lines Matching refs:y
281 register int x, y, l = strlen(str); in php_escape_shell_cmd() local
290 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
297 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_cmd()
298 y += mb_len; in php_escape_shell_cmd()
312 cmd[y++] = '\\'; in php_escape_shell_cmd()
314 cmd[y++] = str[x]; in php_escape_shell_cmd()
346 cmd[y++] = '^'; in php_escape_shell_cmd()
348 cmd[y++] = '\\'; in php_escape_shell_cmd()
352 cmd[y++] = str[x]; in php_escape_shell_cmd()
356 cmd[y] = '\0'; in php_escape_shell_cmd()
358 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
361 cmd = erealloc(cmd, y + 1); in php_escape_shell_cmd()
372 int x, y = 0, l = strlen(str); in php_escape_shell_arg() local
381 cmd[y++] = '"'; in php_escape_shell_arg()
383 cmd[y++] = '\''; in php_escape_shell_arg()
393 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_arg()
394 y += mb_len; in php_escape_shell_arg()
403 cmd[y++] = ' '; in php_escape_shell_arg()
407 cmd[y++] = '\''; in php_escape_shell_arg()
408 cmd[y++] = '\\'; in php_escape_shell_arg()
409 cmd[y++] = '\''; in php_escape_shell_arg()
413 cmd[y++] = str[x]; in php_escape_shell_arg()
417 cmd[y++] = '"'; in php_escape_shell_arg()
419 cmd[y++] = '\''; in php_escape_shell_arg()
421 cmd[y] = '\0'; in php_escape_shell_arg()
423 if ((estimate - y) > 4096) { in php_escape_shell_arg()
426 cmd = erealloc(cmd, y + 1); in php_escape_shell_arg()