php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46030 Bundled GD for Windows does not work
Submitted: 2008-09-09 17:01 UTC Modified: 2008-09-09 17:48 UTC
From: paulschechter at yahoo dot com Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 5.2.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2008-09-09 17:01 UTC] paulschechter at yahoo dot com
Description:
------------
I cannot get GD on my windows system with PHP5 to work.  My phpinfo() says "--with-gd=shared" ".  This is the only instance of the word 'gd' I have in the phpinfo() text (no "GD Support enabled").

This is what I've done so far:
-Reinstalled PHP5.2.6 making sure to include the GD extension in the installation.
-Ensured that the extension_dir path in my php.ini file was correct
-uncommented extension=php_gd2.dll
-ensured that php_gd2.dll is in fact, in the 'ext' directory
-Installed an external version of GD (gd-2.0.33-1)

I think that I have to somehow direct PHP to the external version of GD, but I do not know how to do this.  Any help would be greatly appreciated. Thank you.

Reproduce code:
---------------
No code.

Expected result:
----------------
I expect GD to work and my phpinfo() text to say that GD is actually enabled, not just shared.

Actual result:
--------------
GD doesn't work and phpinfo() just says GD is shared.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-09 17:11 UTC] pajoye@php.net
The configure line is only an information. It does not say that the extension is loaded or not.

Only the GD table (like the other extension) can a be a proof that GD is loaded.

Please check:

- the right php.ini is used (phpinfo() tells you which one you use)
- the extension_dir is an absolute (c:\php5\ext for example)
- you have restarted your server
 [2008-09-09 17:32 UTC] paulschechter at yahoo dot com
Hi, thanks for the fast reply.  Wow, I feel kind-of dumb because I've been working on this bug for a couple of days now, but restarting apache2.2 seemed to do the trick.  Thanks a lot!

I imagine it probably wasn't all that simple because I've restarted my computer many times over the last couple days to no avail.  However, more recently I added the lib files from my external installation of gd into my php lib directory...and I don't think I had restarted apache since then.  So maybe the restart after doing this made it work...who knows.  Anyway, thanks again.
 [2008-09-09 17:48 UTC] pajoye@php.net
Not a bug > bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC