Lines Matching refs:cmd_max_len
61 static size_t cmd_max_len; variable
67 cmd_max_len = sysconf(_SC_ARG_MAX); in PHP_MINIT_FUNCTION()
68 if ((size_t)-1 == cmd_max_len) { in PHP_MINIT_FUNCTION()
70 cmd_max_len = _POSIX_ARG_MAX; in PHP_MINIT_FUNCTION()
72 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
76 cmd_max_len = ARG_MAX; in PHP_MINIT_FUNCTION()
80 cmd_max_len = 8192; in PHP_MINIT_FUNCTION()
83 cmd_max_len = 4096; in PHP_MINIT_FUNCTION()
297 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_cmd()
298 php_error_docref(NULL, E_ERROR, "Command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
373 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
374 …rror_docref(NULL, E_ERROR, "Escaped command exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_cmd()
401 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_arg()
402 php_error_docref(NULL, E_ERROR, "Argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()
460 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
461 …ror_docref(NULL, E_ERROR, "Escaped argument exceeds the allowed length of %zu bytes", cmd_max_len); in php_escape_shell_arg()