From:             
Operating system: Windows 7
PHP version:      5.2.17
Package:          GD related
Bug Type:         Bug
Bug description:[function.imagecreatefromjpeg]: failed to open stream: HTTP 
request failed!

Description:
------------
---

>From manual page:
http://www.php.net/function.imagecreatefromjpeg#Description

---





Warning: imagecreatefromjpeg(http://truyentranhtuan.com/IMAGES/SITE
IMAGES/Kimi_ni_Todoke.jpg) [function.imagecreatefromjpeg]: failed to open
stream: HTTP request failed! HTTP/1.1 404 Not Found in
/home/thegioitru/domains/thegioitruyentranh.vn/public_html/z/facebook.php
on line 39



Every things are OK if the URL don't have any space,

Ext: imagecreatefromjpeg(http://acb.com/PhotoImages.jpg) ==> OK

But: imagecreatefromjpeg(http://acb.com/Photo Images.jpg) ==> "failed to
open stream: HTTP request failed!" (have one space in "Photo" & "Images")



we get images form orther host, so we can rename the suorce images, How we
can get it with imagecreatefromjpeg. if this is Bug, please fix it. Thank!

Test script:
---------------
//return: OK

//$up_file =
"http://truyentranhtuan.com/IMAGES/MANGA/Kimi_ni_Todoke/034/01.JPG";;



// return: "failed to open stream: HTTP request failed!" 

$up_file = "http://truyentranhtuan.com/IMAGES/SITE
IMAGES/Kimi_ni_Todoke.jpg";



$new_image=imagecreatefromjpeg($up_file);

Expected result:
----------------
Warning: imagecreatefromjpeg(http://truyentranhtuan.com/IMAGES/SITE
IMAGES/Kimi_ni_Todoke.jpg) [function.imagecreatefromjpeg]: failed to open
stream: HTTP request failed! HTTP/1.1 404 Not Found in
/home/thegioitru/domains/thegioitruyentranh.vn/public_html/z/facebook.php
on line 39


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

Reply via email to