#32891 [NEW]: Bug using imagefilledellipse at position 0 vertically

2005-04-29 Thread anders at apt dot no
From: anders at apt dot no
Operating system: Windows 2003 Advanced Server
PHP version:  4.3.11
PHP Bug Type: GD related
Bug description:  Bug using imagefilledellipse at position 0 vertically

Description:

While drawing an elliptic object positioned vertically at the top(0px) the
second line is not drawn. I'm using the embedded GD library (2.0.28
compatible).

Reproduce code:
---
if ($im = @imagecreatetruecolor(100, 100)) {
$intCol = imagecolorallocate($im, 0xFF, 0x02, 0xF0);
imagefilledellipse($im, 50, 0, 50, 50, $intCol);
header('Content-type: image/png');
imagepng($im);
} else {
echo 'Could not create truecolor image';
}

Expected result:

I expect to see half a circle, with it's center at 50 x 0, like this:

http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_expected_result.png

Actual result:
--
Instead I get this circle, with one line missing:

http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_actual_result.png

This image was created with the reproduce code:
http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_bug.php

-- 
Edit bug report at http://bugs.php.net/?id=32891edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32891r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32891r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32891r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32891r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32891r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32891r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32891r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32891r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32891r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32891r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32891r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32891r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32891r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32891r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32891r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32891r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32891r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32891r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32891r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32891r=mysqlcfg


#32633 [NEW]: Warning message from imagecreatefromjpeg not suppressed when using @

2005-04-08 Thread anders at apt dot no
From: anders at apt dot no
Operating system: Windows 2003 Advanced Server
PHP version:  4.3.11
PHP Bug Type: GD related
Bug description:  Warning message from imagecreatefromjpeg not suppressed when 
using @

Description:

I'm trying import a JPEG image
(http://kunde.apt.no/aso/imagecreatefromjpeg/demo.jpg) to a resource using
imagecreatefromjpeg. This function fails and even though I use @ infront of
the function, it still generates an error warning 'Corrupt JPEG data: 203
extraneous bytes before marker 0xd9'. The image works fine in every other
program I've tested it with.

Some guy has found his own workaround:
http://www-personal.umd.umich.edu/~dennismv/corruptjpeg.html


Reproduce code:
---
if ($im =
@imagecreatefromjpeg('http://kunde.apt.no/aso/imagecreatefromjpeg/demo.jpg'))
{
echo 'Valid JPEG file';
imagedestroy($im);
} else {
echo 'Not a valid JPEG file';
}

Expected result:

I expect the code to output 'Not a valid JPEG file', since the JPEG
contains errors, and nothing else (since I've suppressed error messages
with the @)

Actual result:
--
Not a valid JPEG fileCorrupt JPEG data: 203 extraneous bytes before marker
0xd9

-- 
Edit bug report at http://bugs.php.net/?id=32633edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32633r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32633r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32633r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32633r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32633r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32633r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32633r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32633r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32633r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32633r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32633r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32633r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32633r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32633r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32633r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32633r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32633r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32633r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32633r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32633r=mysqlcfg