Edit report at https://bugs.php.net/bug.php?id=80877&edit=1
ID: 80877
Comment by: rtrtrtrtrt at dfdfdfdf dot dfd
Reported by: hjhjhj at fgfgfg dot ghghgh
Summary: imageinterlace(): Argument #2 ($enable) must be of
type ?bool, int given
Status: Open
Type: Bug
Package: GD related
PHP Version: 8.0.3
Block user comment: N
Private report: N
New Comment:
are you crazy?
in PHP 7.4 now we have "TypeError: imageinterlace() expects parameter 2 to be int, bool
given" for the same line of code when change it from 1 to TRUE
how do you imagine upgrades to PHP8 that way?
Previous Comments:
------------------------------------------------------------------------
[2021-03-17 13:03:07] hjhjhj at fgfgfg dot ghghgh
Description:
------------
https://www.php.net/manual/en/function.imageinterlace.php
imageinterlace ( resource $image , int $interlace = 0 ) : int
TypeError: imageinterlace(): Argument #2 ($enable) must be of type ?bool, int given
why the hell don't you throw out warnings in PHP7.4 instead switch from no notice or warning to
a fatal type error and why in the world don't you compare with your documentation in that
special case?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80877&edit=1