Doc #65777 [NEW]: Unconditional recommendation not to use imagecreate is misleading

From: Date: Sat, 28 Sep 2013 03:27:04 +0000
Subject: Doc #65777 [NEW]: Unconditional recommendation not to use imagecreate is misleading
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10321@lists.php.net to get a copy of this message
From:             herbmunson at Q dot com
Operating system: n.a.
PHP version:      Irrelevant
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:Unconditional recommendation  not to use imagecreate is misleading

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.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65777&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=65777&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=65777&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=65777&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65777&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65777&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65777&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65777&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65777&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65777&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65777&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=65777&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=65777&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65777&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65777&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65777&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65777&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65777&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65777&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65777&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65777&r=mysqlcfg



Thread (2 messages)

« previous php.doc.bugs (#10321) next »