Skip to content

Commit a04a5db

Browse files
committed
ext/exif: Use zend_str_has_nul_byte() API
1 parent fbc84dd commit a04a5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/exif/exif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4552,7 +4552,7 @@ PHP_FUNCTION(exif_read_data)
45524552
RETURN_THROWS();
45534553
}
45544554

4555-
if (CHECK_NULL_PATH(Z_STRVAL_P(stream), Z_STRLEN_P(stream))) {
4555+
if (UNEXPECTED(zend_str_has_nul_byte(Z_STR_P(stream)))) {
45564556
zend_argument_value_error(1, "must not contain any null bytes");
45574557
RETURN_THROWS();
45584558
}

0 commit comments

Comments
 (0)