mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
This commit is contained in:
@@ -373,12 +373,14 @@ static void _php_finfo_get_type(INTERNAL_FUNCTION_PARAMETERS, int mode, int mime
|
||||
php_stream_wrapper *wrap;
|
||||
php_stream_statbuf ssb;
|
||||
|
||||
// Implementation is used for both finfo_file() and mimetype_emu()
|
||||
int buffer_param_num = (mimetype_emu ? 1 : 2);
|
||||
if (buffer == NULL || buffer_len == 0) {
|
||||
zend_argument_must_not_be_empty_error(1);
|
||||
goto clean;
|
||||
}
|
||||
if (CHECK_NULL_PATH(buffer, buffer_len)) {
|
||||
zend_argument_type_error(1, "must not contain any null bytes");
|
||||
zend_argument_type_error(buffer_param_num, "must not contain any null bytes");
|
||||
goto clean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user