File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ PHPAPI zend_string *php_escape_shell_arg(const zend_string *unescaped_arg)
402
402
403
403
/* max command line length - two single quotes - \0 byte length */
404
404
if (l > cmd_max_len - 2 - 1 ) {
405
- php_error_docref ( NULL , E_ERROR , "Argument exceeds the allowed length of %zu bytes" , cmd_max_len );
405
+ zend_value_error ( "Argument exceeds the allowed length of %zu bytes" , cmd_max_len );
406
406
return ZSTR_EMPTY_ALLOC ();
407
407
}
408
408
@@ -461,7 +461,7 @@ PHPAPI zend_string *php_escape_shell_arg(const zend_string *unescaped_arg)
461
461
ZSTR_VAL (cmd )[y ] = '\0' ;
462
462
463
463
if (y > cmd_max_len + 1 ) {
464
- php_error_docref ( NULL , E_ERROR , "Escaped argument exceeds the allowed length of %zu bytes" , cmd_max_len );
464
+ zend_value_error ( "Escaped argument exceeds the allowed length of %zu bytes" , cmd_max_len );
465
465
zend_string_release_ex (cmd , 0 );
466
466
return ZSTR_EMPTY_ALLOC ();
467
467
}
You can’t perform that action at this time.
0 commit comments