Lines Matching refs:y

281 	register int x, y;  in php_escape_shell_cmd()  local
297 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
304 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
305 y += mb_len; in php_escape_shell_cmd()
319 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
321 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
354 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
356 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
360 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
364 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
366 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
372 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
375 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
378 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
388 int x, y = 0; in php_escape_shell_arg() local
402 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
404 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
414 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
415 y += mb_len; in php_escape_shell_arg()
425 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
429 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
430 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
431 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
435 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
439 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
440 int k = 0, n = y - 1; in php_escape_shell_arg()
443 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
447 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
449 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
451 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
453 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
459 if ((estimate - y) > 4096) { in php_escape_shell_arg()
462 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
464 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()