ID: 39923 User updated by: smlerman at gmail dot com -Summary: Somewhat misleading notice message with type conversions Reported By: smlerman at gmail dot com -Status: Bogus +Status: Open Bug Type: GD related Operating System: Windows PHP Version: 5.2.0 New Comment:
Nope, GD is enabled and working fine. GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled (Sorry about the summary. Browser must have auto-filled it without my noticing) Previous Comments: ------------------------------------------------------------------------ [2006-12-21 14:35:32] [EMAIL PROTECTED] IMG_* constants are defined in GD which is obviously not enabled in your installation. ------------------------------------------------------------------------ [2006-12-21 14:33:21] smlerman at gmail dot com Description: ------------ The constants IMG_PNG, IMG_JPG, and IMG_GIF are reported as undefined. IMAGETYPE_PNG, IMAGETYPE_JPEG, and IMAGETYPE_GIF all work fine. If the IMG_ constants were removed intentionally in favor of the IMAGETYPE_ constants, this is just a documentation issue. Reproduce code: --------------- <?php echo IMG_PNG . "\n"; echo IMG_JPG . "\n"; echo IMG_GIF . "\n"; echo IMAGETYPE_PNG . "\n"; echo IMAGETYPE_JPEG . "\n"; echo IMAGETYPE_GIF . "\n"; ?> Expected result: ---------------- 3 2 1 3 2 1 Actual result: -------------- Notice: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' in test.php on line 3 IMG_PNG Notice: Use of undefined constant IMG_JPG - assumed 'IMG_JPG' in test.php on line 4 IMG_JPG Notice: Use of undefined constant IMG_GIF - assumed 'IMG_GIF' in test.php on line 5 IMG_GIF 3 2 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39923&edit=1