Bug #73389 [Opn->Nab]: imagecreatefromstring or imagecreatefromjpeg returns NULL

From: Date: Wed, 26 Oct 2016 10:07:08 +0000
Subject: Bug #73389 [Opn->Nab]: imagecreatefromstring or imagecreatefromjpeg returns NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205024@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73389&edit=1 ID: 73389 Updated by: cmb@php.net Reported by: jgeert1 at its dot jnj dot com Summary: imagecreatefromstring or imagecreatefromjpeg returns NULL -Status: Open +Status: Not a bug Type: Bug Package: GD related Operating System: Windows Server 2008 R2 PHP Version: Next Minor Version Block user comment: N Private report: N New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Note also that x64 builds of PHP 5 on Windows are experimental. Previous Comments: ------------------------------------------------------------------------ [2016-10-26 09:31:25] jgeert1 at its dot jnj dot com Description: ------------ I'm using PHP version 5.5.38 (64-bit) on Windows and I'm unable to use the imagecreatefromstring or imagecreatefromjpeg functions. I always get NULL as a result while I expected a image resource id or false (if it would fail). I've run phpinfo and noticed that GD is full supported. I checked all logfiles, eventlogs, but I couldn't find any errors. I tried it with several jpg-files (small, medium, large), bit I was unable to load them with the functions. The memory limit is set to 2048, so that can't be the issue. Any idea what's missing here? Test script: --------------- $image = imagecreatefromjpeg('photo.jpg'); var_dump($image); Expected result: ---------------- false or a image resource Actual result: -------------- NULL ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73389&edit=1

« previous php.bugs (#205024) next »