Lines Matching refs:cmd_max_len
57 static size_t cmd_max_len; variable
63 cmd_max_len = sysconf(_SC_ARG_MAX); in PHP_MINIT_FUNCTION()
64 if ((size_t)-1 == cmd_max_len) { in PHP_MINIT_FUNCTION()
66 cmd_max_len = _POSIX_ARG_MAX; in PHP_MINIT_FUNCTION()
68 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
72 cmd_max_len = ARG_MAX; in PHP_MINIT_FUNCTION()
76 cmd_max_len = 8192; in PHP_MINIT_FUNCTION()
79 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
303 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_cmd()
304 php_error_docref(NULL, E_ERROR, "Command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
379 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
380 …rror_docref(NULL, E_ERROR, "Escaped command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
407 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_arg()
408 php_error_docref(NULL, E_ERROR, "Argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()
466 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
467 …ror_docref(NULL, E_ERROR, "Escaped argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()