php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65084 imagecreatefromjpeg fails with URL
Submitted: 2013-06-21 08:36 UTC Modified: 2013-12-05 14:58 UTC
From: scott-php at scottowen dot org Assigned:
Status: Closed Package: GD related
PHP Version: 5.5.0 OS: Windows 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott-php at scottowen dot org
New email:
PHP Version: OS:

 

 [2013-06-21 08:36 UTC] scott-php at scottowen dot org
Description:
------------
imagecreatefromjpeg( URL ) always returns FALSE. URL is valid, allow_url_fopen enabled in ini, worked in 5.4.x but consistently fails without errors/warnings, same ini settings. 

tested imagecreatefromgif( ) with same results, always FALSE without errors/warnings.

webserver logs show the image file is accessed and returned without error.

Test script:
---------------
$im = imagecreatefromjpeg( "d:/wwwroot/cam_offline.jpg" ) ;
// create from valid jpeg file succeeds

$im = imagecreatefromjpeg( "http://www.scottowen.org/cam_offline.jpg" ) ;
// create from URL to same file fails without errors/warning, $im is boolean FALSE



Expected result:
----------------
Result should be a GD resource

Actual result:
--------------
Result is always a boolean FALSE without errors/warnings

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-21 12:11 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fc898ee0f94ee3686aa1f359d4a973d5e8e1754b
Log: Fixed Bug #65060 imagecreatefrom... crashes with user streams Fixed Bug #65084 imagecreatefromjpeg fails with URL
 [2013-06-21 12:11 UTC] remi@php.net
-Status: Open +Status: Closed
 [2013-11-17 09:30 UTC] laruence@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fc898ee0f94ee3686aa1f359d4a973d5e8e1754b
Log: Fixed Bug #65060 imagecreatefrom... crashes with user streams Fixed Bug #65084 imagecreatefromjpeg fails with URL
 [2013-12-05 14:56 UTC] scott-php at scottowen dot org
fixed
 [2013-12-05 14:58 UTC] scott-php at scottowen dot org
I submitted this report but am unable to edit or delete the original content.

Please delete this bug report, or at least edit it to remove the links, as they are causing errors on my server.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 20:01:27 2019 UTC