php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31603 Unable to use php-gd and libgd at the same time
Submitted: 2005-01-19 03:47 UTC Modified: 2005-01-19 03:52 UTC
From: seb at akretio dot be Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.8 OS: Mandrake 9.2
Private report: No CVE-ID: None
 [2005-01-19 03:47 UTC] seb at akretio dot be
Description:
------------
I'm working on an extension for php, compiled with Kylix for the linux version and Delphi for the windows version.

My extension provides some chart functions using libgd2 (I access directly libgd2 from within the extension). Everything is working fine unless I install php-gd.

If php-gd is installed, the only result I can get from libgd is a black image, but without php-gd, everything is working like a charm. (Tested with several versions of libgd).

The problem is only appearing under linux and there is no such problem with the windows version of PHP.

I cannot give you any code to reproduce the problem, you have to believe me but I have searched several days, my code is working fine under linux/windows and is working perfectly without php-gd. But if you are ok to check it, I can send you the files to test it with my extension.

I could live without php-gd, but if the problem can be solved, I would be very happy!

PS: Already asked about this at boutell but they sent me back here as the problem is only appareaing when php-gd is loaded.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-19 03:52 UTC] sniper@php.net
This is not the place to ask questions about how to develop new extensions for PHP. Use the internals@lists.php.net mailing list. Or the PECL stuff (http://pecl.php.net)

Most likely the reason is that you're linking different versions of libgd2 (by loading php-gd, whateverthatis, it's linked with either the bundled functions).

Way to fix: Use same gd library for both. (compile them yourself!)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 03:01:33 2024 UTC