mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/exif: Use zend_str_has_nul_byte() API
This commit is contained in:
parent
fbc84dd056
commit
a04a5dbfb1
1 changed files with 1 additions and 1 deletions
|
@ -4552,7 +4552,7 @@ PHP_FUNCTION(exif_read_data)
|
|||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
if (CHECK_NULL_PATH(Z_STRVAL_P(stream), Z_STRLEN_P(stream))) {
|
||||
if (UNEXPECTED(zend_str_has_nul_byte(Z_STR_P(stream)))) {
|
||||
zend_argument_value_error(1, "must not contain any null bytes");
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue