|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3768 ImageCreateFromPng fails if http call is used
Submitted: 2000-03-08 12:05 UTC Modified: 2005-03-31 16:13 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jimmydigital at hotmail dot com Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.15 OS: RedHat 6.0
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.
Block user comment
Status: Assign to:
Bug Type:
From: jimmydigital at hotmail dot com
New email:
PHP Version: OS:


 [2000-03-08 12:05 UTC] jimmydigital at hotmail dot com
Details on my setup...  

Apache 1.3.11, php 3.0.15, gd 1.7.3, zlib 1.1.3

php/configure --with-gd=/usr/local/src/gd-1.7.3/ --with-apache=../apche_1.3.11 --enable-track-vars

apache/configure --prefix=/www --activate-module=src/modules/php3/libphp3.a

I'm trying to fopen a remote png file using http with... 
$fp = fopen("","r");

If I do a print(fread($fp,3024));  I get the raw dump of the complete image... so far so good.

I then pass that $fp to

$im_in = imagecreatefrompng($fp);

And it returns a null... 

If I pass it a local file name it works fine...

The file does exist in the specified location in all cases... This was working at one point.. (3.0.13 perhaps) I wrote it back then.. and have not tried to use it until now...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 11:01:30 2024 UTC