From:             nunoplopes at sapo dot pt
Operating system: Win XP
PHP version:      5.0.0b4 (beta4)
PHP Bug Type:     GD related
Bug description:  image2wbmp segfaults

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 bug report at http://bugs.php.net/?id=27293&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27293&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27293&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27293&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27293&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27293&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27293&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27293&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27293&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27293&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27293&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27293&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27293&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27293&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27293&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27293&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27293&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27293&r=float

Reply via email to