ID: 27293 Updated by: [EMAIL PROTECTED] Reported By: nunoplopes at sapo dot pt -Status: Open +Status: Closed Bug Type: GD related Operating System: Win XP PHP Version: 5.0.0b4 (beta4) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-02-17 14:17:00] nunoplopes at sapo dot pt Description: ------------ image2wbmp is segfaulting with my PHP 5. Reproduce code: --------------- <?php $file = 'php.png'; $image = imagecreatefrompng($file); header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP)); image2wbmp($image); ?> Expected result: ---------------- output the image Actual result: -------------- $ gdb php GNU gdb 2003-09-20-cvs (cygwin-special) (...) (gdb) run bug.php Starting program: /cygdrive/c/php/php.exe bug.php ---Type <return> to continue, or q <return> to quit--- Warning: image2wbmp(): Invalid threshold value '-1'. It must be between 0 and 25 5 in c:\nuno\testing\bug.php on line 7 Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () from (gdb) bt #0 0x00000000 in ?? () from ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27293&edit=1
