php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65777 Unconditional recommendation not to use imagecreate is misleading
Submitted: 2013-09-28 03:27 UTC Modified: 2013-10-01 17:11 UTC
From: herbmunson at Q dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n.a.
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: herbmunson at Q dot com
New email:
PHP Version: OS:

 

 [2013-09-28 03:27 UTC] herbmunson at Q dot com
Description:
------------
---
From manual page: http://www.php.net/function.imagecreate
---
I'm putting this here instead of a comment under on the doc page because of all the warnings about what not to put there.  Indeed, this seems like a better place.  

Reload my patch?  It is a tiny, tiny bug in the documentation. This is where you said you wanted such stuff.  No, it isn't fixed,  because it is there, in the documentation.  Where it will probably remain.

If one does as you unconditionally suggest, and use imagecreattruecolor instead of imagecreate in the process of taking a small image from a larger png, you will end up with a "truecolor" image and no color map, and it is unlikely that is what you want.  One also wastes a lot of time in figuring this out.  

Such suggestions should offer at least a modicum of rationalization.  This one should be conditional.  Since I'm unsure why you make the suggestion, i can't come up with an appropriate condition.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-01 17:11 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=331628
Log: Expand on why imagecreate() isn't such a smart idea nowadays.

Fixes doc bug #65777 (Unconditional recommendation not to use imagecreate is
misleading).
 [2013-10-01 17:11 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2013-10-01 17:11 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 09:00:02 2026 UTC