|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-11 09:09 UTC] derick@php.net
[2004-06-11 10:04 UTC] nlopess@php.net
[2004-06-11 10:25 UTC] nlopess@php.net
[2020-02-07 06:12 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 18:00:01 2025 UTC |
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 />