php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25370 showing garbage
Submitted: 2003-09-02 18:41 UTC Modified: 2003-09-02 23:52 UTC
From: aamirrajpoot at hotmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.3 OS: XP with IIS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: aamirrajpoot at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-09-02 18:41 UTC] aamirrajpoot at hotmail dot com
Description:
------------
well here is the code
and the result infront of u . i m very new to php. well done many things coz i know the asp and someother . but never done about GD or created the images on fly. so testing something with gd lib. just done remove the semicollon from the extension to run php_gd2.dll file .




Reproduce code:
---------------
<? 
header ("Content-type: image/gif"); 
$im = @ImageCreateFromGIF ("d:\php\php.gif"); 
if(!$im) { 
        $img_handle = ImageCreate (200, 20) or die ("Cannot Create image"); 
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); 
    $txt_color = ImageColorAllocate ($img_handle, 235, 235, 51); 
        ImageString ($img_handle, 10, 25, 5,  "Image Not Found", $txt_color); 
    ImagePng ($img_handle); } 
Else { 
    echo "Image is Found"; } 
?>
<htmL>
<head><title>My first app</title></head><body bgcolor=red></body></html>

Expected result:
----------------
well expect result is that to show me an image the image not fonund or simply print the text image is found and it is on the red bg. with the title of the document is my first app but instead of this all the result is very different...

Actual result:
--------------
?PNG  IHDR??j??PLTE ??3'?5z?IDATx?c`~?L2? ?@? .??9? ??d?a??m?~??3?: ?c?e?39????$??Ҥg?C?9??&???0?43i?6$??o?0??&s#?cV?7??}i? l??<{??Χ????f?t???<???? ?B??,?C*7IEND?B`?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-02 23:52 UTC] sniper@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.

This is not a support forum, please go ask this kind of RTFM questions elsewhere.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 03:01:30 2024 UTC