From: antin dot roskat at zarecons dot net Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: imagejpeg, imagepng etc return value not correct
Description: ------------ At least imagepng, imagejpeg and imagegif have a documented return value of int. The correct return value should be boolean. Using gettype on the return value returns "boolean". Reproduce code: --------------- $im = imagecreatetruecolor(100,100); echo gettype(imagejpeg($im)); Expected result: ---------------- I'm expecting to see "integer" echoed (according to the manual). Actual result: -------------- Instead I'm seeing "boolean" echoed. -- Edit bug report at http://bugs.php.net/?id=28858&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28858&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28858&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28858&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28858&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28858&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28858&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28858&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28858&r=support Expected behavior: http://bugs.php.net/fix.php?id=28858&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28858&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28858&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28858&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28858&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28858&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28858&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28858&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28858&r=float
