Lines Matching refs:y

288 	register size_t x, y;  in php_escape_shell_cmd()  local
304 for (x = 0, y = 0; x < l; x++) { 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()
326 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
328 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
361 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
363 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
367 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
371 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
373 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
379 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
382 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
385 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
395 size_t x, y = 0; in php_escape_shell_arg() local
409 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
411 ZSTR_VAL(cmd)[y++] = '\''; 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()
432 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
436 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
437 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
438 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
442 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
446 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
447 int k = 0, n = y - 1; in php_escape_shell_arg()
450 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
454 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
456 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
458 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
460 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
466 if ((estimate - y) > 4096) { in php_escape_shell_arg()
469 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
471 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()