Skip to content

Commit ca7fe5a

Browse files
committed
IPCT
1 parent 9c7c9d1 commit ca7fe5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/iptc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ PHP_FUNCTION(iptcembed)
199199
}
200200

201201
if (iptcdata_len >= SIZE_MAX - sizeof(psheader) - 1025) {
202-
php_error_docref(NULL, E_WARNING, "IPTC data too large");
203-
RETURN_FALSE;
202+
zend_argument_value_error(1, "must be less than %d characters", SIZE_MAX - sizeof(psheader) - 1025);
203+
RETURN_THROWS();
204204
}
205205

206206
if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) {

0 commit comments

Comments
 (0)