PHP 7.1.7 imagecreatetruecolor produces 500 error

Viewed 3788

I have been updating my site to PHP 7.1.7 as well as IIS and have run into an issue with imagecreatetrucolor throwing a 500 error.

http://localhost/test.php 500 (Internal Server Error)

The only line of code in that file is

<?php imagecreatetruecolor(10,10) ?>

This has been working in the site under PHP 5.6.31 and Apache and returns

resource(2) of type (gd)

GD imaging is listed in with phpinfo() under 7.1.7 as

GD imaging  Rasmus Lerdorf, Stig Bakken, Jim Winstead, Jouni Ahto, Ilia Alshanetsky, Pierre-Alain Joye, Marcus Boerger

This is the error

Fatal error: Uncaught Error: Call to undefined function imagecreatetruecolor() in D:\Intranet\www\public\test.php:11 Stack trace: #0 {main} thrown in D:\Intranet\www\public\test.php on line 11

What could the problem be?

1 Answers
Related