Lines Matching refs:y
247 register int x, y, l = strlen(str); in php_escape_shell_cmd() local
256 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
263 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_cmd()
264 y += mb_len; in php_escape_shell_cmd()
278 cmd[y++] = '\\'; in php_escape_shell_cmd()
280 cmd[y++] = str[x]; in php_escape_shell_cmd()
313 cmd[y++] = '^'; in php_escape_shell_cmd()
315 cmd[y++] = '\\'; in php_escape_shell_cmd()
319 cmd[y++] = str[x]; in php_escape_shell_cmd()
323 cmd[y] = '\0'; in php_escape_shell_cmd()
325 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
328 cmd = erealloc(cmd, y + 1); in php_escape_shell_cmd()
339 int x, y = 0, l = strlen(str); in php_escape_shell_arg() local
348 cmd[y++] = '"'; in php_escape_shell_arg()
350 cmd[y++] = '\''; in php_escape_shell_arg()
360 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_arg()
361 y += mb_len; in php_escape_shell_arg()
371 cmd[y++] = ' '; in php_escape_shell_arg()
375 cmd[y++] = '\''; in php_escape_shell_arg()
376 cmd[y++] = '\\'; in php_escape_shell_arg()
377 cmd[y++] = '\''; in php_escape_shell_arg()
381 cmd[y++] = str[x]; in php_escape_shell_arg()
385 if (y > 0 && '\\' == cmd[y - 1]) { in php_escape_shell_arg()
386 int k = 0, n = y - 1; in php_escape_shell_arg()
389 cmd[y++] = '\\'; in php_escape_shell_arg()
393 cmd[y++] = '"'; in php_escape_shell_arg()
395 cmd[y++] = '\''; in php_escape_shell_arg()
397 cmd[y] = '\0'; in php_escape_shell_arg()
399 if ((estimate - y) > 4096) { in php_escape_shell_arg()
402 cmd = erealloc(cmd, y + 1); in php_escape_shell_arg()