ID:               25546
 Updated by:       [EMAIL PROTECTED]
 Reported By:      info at loyaa dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Win2000
 PHP Version:      4.3.2
 New Comment:

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.

Your code is wrong.


Previous Comments:
------------------------------------------------------------------------

[2003-09-15 13:04:30] info at loyaa dot com

Description:
------------
I want through GD get picture file on internet,
But GD version bundled (2.0.12 compatible) of PHP 4.3.2 or higher can't
work normally.
The phenomenon as follows:
1. Can't totally obtain the goal file.
2. Premature end of picture file.

PHP 4.2.2 (GD version 2.0 or higher) work normally.


Reproduce code:
---------------
$fileURL = 'http://bugs.php.net/gifs/logo-bug.gif';
$file_fp = @fopen(trim($fileURL),'r');
$file = @fread($file_fp,5000000);
Header("Content-type: image/gif");
echo $file;
@fclose($file_fp);


Expected result:
----------------
GD version bundled (2.0.12 compatible) or higher

Actual result:
--------------
PHP Version 4.2.2
GD Version 2.0 or higher work normally.
--------------------------------

$fileURL = 'http://bugs.php.net/gifs/logo-bug.gif';
$file_fp = @fopen(trim($fileURL),'r');
$file = @fread($file_fp,5000000);
Header("Content-type: image/gif");
echo $file;
@fclose($file_fp);



------------------------------------------------------------------------


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

Reply via email to