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 @@ -295,7 +295,7 @@ PHPAPI zend_string *php_escape_shell_cmd(const zend_string *unescaped_cmd)
295
295
296
296
/* max command line length - two single quotes - \0 byte length */
297
297
if (l > cmd_max_len - 2 - 1 ) {
298
- php_error_docref ( NULL , E_ERROR , "Command exceeds the allowed length of %zu bytes" , cmd_max_len );
298
+ zend_value_error ( "Command exceeds the allowed length of %zu bytes" , cmd_max_len );
299
299
return ZSTR_EMPTY_ALLOC ();
300
300
}
301
301
@@ -371,7 +371,7 @@ PHPAPI zend_string *php_escape_shell_cmd(const zend_string *unescaped_cmd)
371
371
ZSTR_VAL (cmd )[y ] = '\0' ;
372
372
373
373
if (y > cmd_max_len + 1 ) {
374
- php_error_docref ( NULL , E_ERROR , "Escaped command exceeds the allowed length of %zu bytes" , cmd_max_len );
374
+ zend_value_error ( "Escaped command exceeds the allowed length of %zu bytes" , cmd_max_len );
375
375
zend_string_release_ex (cmd , 0 );
376
376
return ZSTR_EMPTY_ALLOC ();
377
377
}
You can’t perform that action at this time.
0 commit comments