From: p00p00 at hotmail dot com Operating system: w2k PHP version: 4.3.4 PHP Bug Type: Documentation problem Bug description: Call to undefined function: imageistruecolor()
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 /> -- Edit bug report at http://bugs.php.net/?id=28737&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28737&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28737&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28737&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28737&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28737&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28737&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28737&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28737&r=support Expected behavior: http://bugs.php.net/fix.php?id=28737&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28737&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28737&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28737&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28737&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28737&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28737&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28737&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28737&r=float