Bug #65084 [NEW]: imagecreatefromjpeg fails with URL
| From: | scott-php at scottowen dot org | Date: | Fri, 21 Jun 2013 08:36:52 +0000 |
| Subject: | Bug #65084 [NEW]: imagecreatefromjpeg fails with URL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-179671@lists.php.net to get a copy of this message | ||
From: scott-php at scottowen dot org
Operating system: Windows 8
PHP version: 5.5.0
Package: GD related
Bug Type: Bug
Bug description:imagecreatefromjpeg fails with URL
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
--
Edit bug report at https://bugs.php.net/bug.php?id=65084&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65084&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65084&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65084&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65084&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65084&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65084&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65084&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65084&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65084&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65084&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65084&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65084&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65084&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65084&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65084&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65084&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65084&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65084&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65084&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65084&r=mysqlcfg