Bug #80877 [Com]: imageinterlace(): Argument #2 ($enable) must be of type ?bool, int given

From: Date: Wed, 17 Mar 2021 13:06:28 +0000
Subject: Bug #80877 [Com]: imageinterlace(): Argument #2 ($enable) must be of type ?bool, int given
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232814@lists.php.net to get a copy of this message
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


Thread (6 messages)

« previous php.bugs (#232814) next »