php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44503 GD Error?
Submitted: 2008-03-22 05:44 UTC Modified: 2008-03-22 21:35 UTC
From: shadow_man642 at hotmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 5.2.5 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shadow_man642 at hotmail dot com
New email:
PHP Version: OS:

 

 [2008-03-22 05:44 UTC] shadow_man642 at hotmail dot com
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()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-22 11:01 UTC] pajoye@php.net
"The extension is uncommented in PHP.ini but the functions still don't
work and phpinfo produces "--without-gd"."

The important part to check is the GD section of the phpinfo() output.

Be sure that you are editing the php.ini used by your php. You can get its path in phpinfo() as well.

PHP.net has a installation support mailing list, please ask your questions there or in one of the numerous support channels. This issue tracker is only about tracking features requests or bugs.
 [2008-03-22 21:35 UTC] shadow_man642 at hotmail dot com
Nevermind this, it was a problem with Apache and not PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 15:01:36 2024 UTC