Skip to content

Commit 7e88389

Browse files
committed
IPCT
1 parent 62813c0 commit 7e88389

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
@@ -193,8 +193,8 @@ PHP_FUNCTION(iptcembed)
193193
}
194194

195195
if (iptcdata_len >= SIZE_MAX - sizeof(psheader) - 1025) {
196-
php_error_docref(NULL, E_WARNING, "IPTC data too large");
197-
RETURN_FALSE;
196+
zend_argument_value_error(1, "must be less than %d characters", SIZE_MAX - sizeof(psheader) - 1025);
197+
RETURN_THROWS();
198198
}
199199

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

0 commit comments

Comments
 (0)