Lines Matching refs:y
284 register size_t x, y; in php_escape_shell_cmd() local
300 for (x = 0, y = 0; x < l; x++) { in php_escape_shell_cmd()
307 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_cmd()
308 y += mb_len; in php_escape_shell_cmd()
322 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
324 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
357 ZSTR_VAL(cmd)[y++] = '^'; in php_escape_shell_cmd()
359 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_cmd()
363 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_cmd()
367 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_cmd()
369 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
375 if ((estimate - y) > 4096) { in php_escape_shell_cmd()
378 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_cmd()
381 ZSTR_LEN(cmd) = y; in php_escape_shell_cmd()
390 size_t x, y = 0; in php_escape_shell_arg() local
404 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
406 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
416 memcpy(ZSTR_VAL(cmd) + y, str + x, mb_len); in php_escape_shell_arg()
417 y += mb_len; in php_escape_shell_arg()
427 ZSTR_VAL(cmd)[y++] = ' '; in php_escape_shell_arg()
431 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
432 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
433 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
437 ZSTR_VAL(cmd)[y++] = str[x]; in php_escape_shell_arg()
441 if (y > 0 && '\\' == ZSTR_VAL(cmd)[y - 1]) { in php_escape_shell_arg()
442 int k = 0, n = y - 1; in php_escape_shell_arg()
445 ZSTR_VAL(cmd)[y++] = '\\'; in php_escape_shell_arg()
449 ZSTR_VAL(cmd)[y++] = '"'; in php_escape_shell_arg()
451 ZSTR_VAL(cmd)[y++] = '\''; in php_escape_shell_arg()
453 ZSTR_VAL(cmd)[y] = '\0'; in php_escape_shell_arg()
455 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
461 if ((estimate - y) > 4096) { in php_escape_shell_arg()
464 cmd = zend_string_truncate(cmd, y, 0); in php_escape_shell_arg()
466 ZSTR_LEN(cmd) = y; in php_escape_shell_arg()