Lines Matching refs:cmd_max_len
55 static size_t cmd_max_len; variable
61 cmd_max_len = sysconf(_SC_ARG_MAX); in PHP_MINIT_FUNCTION()
62 if ((size_t)-1 == cmd_max_len) { in PHP_MINIT_FUNCTION()
64 cmd_max_len = _POSIX_ARG_MAX; in PHP_MINIT_FUNCTION()
66 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
70 cmd_max_len = ARG_MAX; in PHP_MINIT_FUNCTION()
74 cmd_max_len = 8192; in PHP_MINIT_FUNCTION()
77 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
293 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_cmd()
294 php_error_docref(NULL, E_ERROR, "Command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
369 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
370 …rror_docref(NULL, E_ERROR, "Escaped command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
396 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_arg()
397 php_error_docref(NULL, E_ERROR, "Argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()
455 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
456 …ror_docref(NULL, E_ERROR, "Escaped argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()