php.net |  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
Votes:1
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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("http://neo.xxx.com/mrtg/fw1-day.png","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...


Patches

Pull Requests

History

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: Sat Dec 14 11:01:27 2024 UTC