|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-22 11:01 UTC] pajoye@php.net
[2008-03-22 21:35 UTC] shadow_man642 at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 16:00:01 2025 UTC |
Description: ------------ I've tried on three machines with separate installations of PHP but i keep getting the same issue, GD2 doesn't work. The extension is uncommented in PHP.ini but the functions still don't work and phpinfo produces "--without-gd". I assume the only way to fix that would be compile to PHP source? because i don't know of a Configure command usable on Windows XP. Thanks for any help providable. Reproduce code: --------------- <?php $string = "test"; $image = imagecreatefromstring($string); if ($image !== false) { header('Content-Type: image/png'); imagepng($image); } else { echo("ERROR!"); } ?> Expected result: ---------------- An image with the text "test" in it. Actual result: -------------- Fatal error: Call to undefined function imagecreatefromstring()