我一直在更新我的网站到PHP 7.1.7以及IIS,并遇到了imagecreatetrucolor抛出500错误的问题。PHP 7.1.7 imagecreatetruecolor产生500错误
http://localhost/test.php 500 (Internal Server Error)
的代码在该文件中唯一的行
<?php imagecreatetruecolor(10,10) ?>
这已经在现场一直致力于PHP 31年6月5日和Apache下,返回
resource(2) of type (gd)
GD成像上市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
这是错误
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
问题是什么?
打开你的错误,从你的ini文件报告,看看有什么错误! –
这是错误 致命错误:未捕获错误:调用D:\ Intranet \ www \ public \ test.php中的未定义函数imagecreatetruecolor():11 Stack trace:#0 {main}抛出D:\ Intranet \ www \ public \ test.php第11行 –
所以你的函数没有定义! –