We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbc84dd commit a04a5dbCopy full SHA for a04a5db
1 file changed
ext/exif/exif.c
@@ -4552,7 +4552,7 @@ PHP_FUNCTION(exif_read_data)
4552
RETURN_THROWS();
4553
}
4554
4555
- if (CHECK_NULL_PATH(Z_STRVAL_P(stream), Z_STRLEN_P(stream))) {
+ if (UNEXPECTED(zend_str_has_nul_byte(Z_STR_P(stream)))) {
4556
zend_argument_value_error(1, "must not contain any null bytes");
4557
4558
0 commit comments