php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27918 problem in imagecreate function
Submitted: 2004-04-08 07:18 UTC Modified: 2004-04-08 08:49 UTC
From: zia_roshni at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.5 OS: windows 2000 server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zia_roshni at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-04-08 07:18 UTC] zia_roshni at hotmail dot com
Description:
------------
i m trying to use imgarecreate function... and i think there is no problem in gd... plz tell me soon about this problem i m waiting

Reproduce code:
---------------
Header('Content-Type: image/jpg');
$image = ImageCreate(100 , 100);
$black = ImageColorAllocate($image, 0 , 0 , 0);
$white = ImageColorAllocate($image, 255 , 255 , 255);
ImageLine($image, 0, 0, 99, 99, $black);
ImageJPEG($image);
ImageDestroy($image);


Expected result:
----------------
i m trying this code and i expected the resulted page has a black line

Actual result:
--------------
but the output is like this...
????JFIF??>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ??C    $.' ",#(7),01444'9=82<.342??C  2!!22222222222222222222222222222222222222222222222222??dd"?? ?ĵ}!1AQa"q2???#B??R??$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??????????????????????????????????????????????????????????????????????????? ?ĵw!1AQaq"2?B???? #3R?br? $4?%?&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz?????????????????????????????????????????????????????????????????????????? ????( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?? ?> 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-08 08:49 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 07:01:27 2025 UTC