Bug #79966 [Opn]: imagecreatetruecolor has Fatal error

From: Date: Wed, 12 Aug 2020 20:51:04 +0000
Subject: Bug #79966 [Opn]: imagecreatetruecolor has Fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228552@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79966&edit=1

 ID:                 79966
 User updated by:    dpfender44 at gmail dot com
 Reported by:        dpfender44 at gmail dot com
-Summary:            imagecreatetrucolor has Fatal error
+Summary:            imagecreatetruecolor has Fatal error
 Status:             Open
 Type:               Bug
 Package:            GD related
 Operating System:   Windows 10 Pro
 PHP Version:        8.0.0beta1
 Block user comment: N
 Private report:     N

 New Comment:

Changed spelling in Summary


Previous Comments:
------------------------------------------------------------------------
[2020-08-12 20:49:30] dpfender44 at gmail dot com

Test Script:
<?php
$img = imagecreatetruecolor(800, 530);
$img = imagecreate(800, 530);
?>

------------------------------------------------------------------------
[2020-08-12 20:44:20] requinix@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------
[2020-08-12 20:40:47] dpfender44 at gmail dot com

Description:
------------
Both imagecreate() and imagecreatetruecolor() have the same fatal error where there is no problem
with PHP 7.4.9.  This code has been working for years and I just recently tried PHP 8.0.0Beta1 and
got this error.

<b>Fatal error</b>:  Uncaught Error: Object of class GdImage could not be converted to
string

Test script:
---------------
$img = imagecreatetruecolor(800, 530);
$img = imagecreate(800, 530);



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=79966&edit=1


Thread (10 messages)

« previous php.bugs (#228552) next »