[PHP-BUG] Bug #64499 [NEW]: test on php version = 5.3.13 and 5.3.5

2013-03-24 Thread dhaliwaljee at gmail dot com
From: dhaliwaljee at gmail dot com
Operating system: all
PHP version:  5.3.23
Package:  GD related
Bug Type: Bug
Bug description:test on php version = 5.3.13 and 5.3.5

Description:

I have problem with imagepng;

"imagepng()" This code shows broken image on browser, but its working fine
to save 
the image on local disk. for example: imagepng($image,"a.png"); is working
but I 
don't want to save this file.

Test script:
---
$image = imagecreatetruecolor(200, 400) or die("a");
$bg = imagecolorallocate($image, 255, 255, 255) or die("d");

imagestring($image, 12, 10, 100, "Hello", $bg) or die("b");
header('Content-type: image/png');
imagepng($image) or die("c");


Expected result:

"Hello" Image on Browser

Actual result:
--
Broken Image on Chrome
and 
Firefox output:
The image "http://localhost/Test/index.php"; cannot be displayed because it

contains errors.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64499&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64499&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64499&r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=64499&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=64499&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=64499&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64499&r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=64499&r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=64499&r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=64499&r=support
Expected behavior:  https://bugs.php.net/fix.php?id=64499&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64499&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64499&r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=64499&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64499&r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=64499&r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=64499&r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=64499&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64499&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64499&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64499&r=mysqlcfg



Bug #64499 [Fbk->Csd]: test on php version = 5.3.13 and 5.3.5

2013-03-24 Thread dhaliwaljee at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=64499&edit=1

 ID: 64499
 User updated by:dhaliwaljee at gmail dot com
 Reported by:dhaliwaljee at gmail dot com
 Summary:test on php version = 5.3.13 and 5.3.5
-Status: Feedback
+Status: Closed
 Type:   Bug
 Package:GD related
 Operating System:   all
 PHP Version:5.3.23
 Block user comment: N
 Private report: N

 New Comment:

Thanks to pajoye,
it solved my problem.

This site is very helpful rather than any other.


Previous Comments:

[2013-03-24 14:53:54] paj...@php.net

Or be sure that no space or other empty characters (or non empty :) are sent 
before the image, like a new line/space before the opening http://localhost/Test/index.php"; cannot be displayed because it 
contains errors.






-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64499&edit=1