Lines Matching refs:y

282 	size_t x, y;  in php_escape_shell_cmd()  local
302 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
309 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
310 y += mb_len; in php_escape_shell_cmd()
324 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
326 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
359 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
361 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
365 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
369 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
371 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
377 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
380 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
383 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
392 size_t x, y = 0; in php_escape_shell_arg() local
410 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
412 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
422 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
423 y += mb_len; in php_escape_shell_arg()
433 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()
439 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
443 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
447 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
448 int k = 0, n = y - 1; in php_escape_shell_arg()
451 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
455 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
457 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
459 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
461 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
467 if ((estimate - y) > 4096) { in php_escape_shell_arg()
470 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
472 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()