php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28737 Call to undefined function: imageistruecolor()
Submitted: 2004-06-11 04:56 UTC Modified: 2004-06-11 10:25 UTC
From: p00p00 at hotmail dot com Assigned: nlopess (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.4 OS: w2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: p00p00 at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-06-11 04:56 UTC] p00p00 at hotmail dot com
Description:
------------
I tried to use the imageistruecolor() function, but it didn't work, the errormessage PHP returned was:

Fatal error:  Call to undefined function:  imageistruecolor() in ...etc...

I checked the documentation and it said (PHP 4 >= 4.3.2, PHP 5), and i have 4.3.4

Reproduce code:
---------------
Header("Content-type: image/jpeg"); 
$im = imagecreatefromjpeg("test.jpg"); 
imageinterlace($im, 1);
//Imagejpeg($im,'',100); 
print imageistruecolor($im);
ImageDestroy($im); 

Expected result:
----------------
boolean (i think 0 since test.jpg is not true color i think, not sure, thats why i wanted to use this function in the first place :-))

Actual result:
--------------
<br />
<b>Fatal error</b>:  Call to undefined function:  imageistruecolor() in <b>c:\webserver\htdocs\test.php</b> on line <b>10</b><br />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-11 09:09 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 [2004-06-11 10:04 UTC] nlopess@php.net
You need GD 2.
I'll add a note in the manual.
 [2004-06-11 10:25 UTC] nlopess@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.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a5750a8f03a7555f121b5a6bbc056a9ccd2d2cf5
Log: fix #28737: add GD 2 info
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 05:01:30 2024 UTC