Lines Matching refs:y

294 	register size_t x, y;  in php_escape_shell_cmd()  local
310 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
317 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
318 y += mb_len; in php_escape_shell_cmd()
332 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
334 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
367 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
369 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
373 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
377 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
379 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
385 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
388 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
391 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
401 size_t x, y = 0; in php_escape_shell_arg() local
415 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
417 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
427 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
428 y += mb_len; in php_escape_shell_arg()
438 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
442 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
443 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
444 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
448 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
452 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
453 int k = 0, n = y - 1; in php_escape_shell_arg()
456 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
460 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
462 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
464 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
466 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
472 if ((estimate - y) > 4096) { in php_escape_shell_arg()
475 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
477 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()