Doc #80640 [NEW]: imagecreatetruecolor returns GDimage object instead of resource
| From: | petzold dot mx at gmail dot com | Date: | Mon, 18 Jan 2021 10:29:44 +0000 |
| Subject: | Doc #80640 [NEW]: imagecreatetruecolor returns GDimage object instead of resource | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-18418@lists.php.net to get a copy of this message | ||
From: petzold dot mx at gmail dot com
Operating system: debian
PHP version: 8.0Git-2021-01-18 (snap)
Package: *Programming Data Structures
Bug Type: Documentation Problem
Bug description:imagecreatetruecolor returns GDimage object instead of resource
Description:
------------
---
From manual page: https://php.net/function.imagecreatetruecolor
---
returntype Change with php8 is not mentioned
imagecreatetruecolor returns an GdImage Object instead of a resource
Test script:
---------------
$image = imagecreatetruecolor(10,10);
if (!is_resource($image)) {
die('Unable to generate image: not a resource');
}
Expected result:
----------------
true
Actual result:
--------------
false
--
Edit bug report at https://bugs.php.net/bug.php?id=80640&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80640&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80640&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80640&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80640&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80640&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80640&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80640&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80640&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80640&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80640&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80640&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80640&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80640&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80640&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80640&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80640&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80640&r=mysqlcfg