Lines Matching refs:cmd_max_len
57 static int cmd_max_len; variable
63 cmd_max_len = sysconf(_SC_ARG_MAX); in PHP_MINIT_FUNCTION()
64 if (-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()
290 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_cmd()
291 php_error_docref(NULL, E_ERROR, "Command exceeds the allowed length of %d bytes", cmd_max_len); in php_escape_shell_cmd()
366 if (y > cmd_max_len + 1) { in php_escape_shell_cmd()
367 …error_docref(NULL, E_ERROR, "Escaped command exceeds the allowed length of %d bytes", cmd_max_len); in php_escape_shell_cmd()
394 if (l > cmd_max_len - 2 - 1) { in php_escape_shell_arg()
395 php_error_docref(NULL, E_ERROR, "Argument exceeds the allowed length of %d bytes", cmd_max_len); in php_escape_shell_arg()
453 if (y > cmd_max_len + 1) { in php_escape_shell_arg()
454 …rror_docref(NULL, E_ERROR, "Escaped argument exceeds the allowed length of %d bytes", cmd_max_len); in php_escape_shell_arg()