Bug #3768: ImageCreateFromPng fails if http call is used
| From: | jimmydigital at hotmail dot com | Date: | Wed, 08 Mar 2000 17:05:48 +0000 |
| Subject: | Bug #3768: ImageCreateFromPng fails if http call is used | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16542@lists.php.net to get a copy of this message | ||
From: jimmydigital@hotmail.com
Operating system: RedHat 6.0
PHP version: 3.0.15
PHP Bug Type: Other
Bug description: ImageCreateFromPng fails if http call is used
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...