]> granicus.if.org Git - php/commit
raise ValueError from imagecreate/imagecreatetruecolor
authorPeter Cowburn <salathe@php.net>
Wed, 4 Sep 2019 20:42:43 +0000 (21:42 +0100)
committerPeter Cowburn <salathe@php.net>
Mon, 9 Sep 2019 20:06:00 +0000 (21:06 +0100)
commita43679632b97b513d6e2913d90e24d0915e1b486
tree7d17a9cba631ba15923cf5986054ff60446858eb
parentbc6199757168eee4bd1d0a0d28a36c242bdcf13d
raise ValueError from imagecreate/imagecreatetruecolor

Raise a ValueError instead of a plain Error when calling imagecreate()
or imagecreatetruecolor() with too big or small values for the width or
height arguments.
ext/gd/gd.c
ext/gd/tests/imagecreate_error.phpt
ext/gd/tests/imagecreatetruecolor_error2.phpt