Skip to Content.
Sympa Menu

freetds - Re: [freetds] Configuring PHP with GD is breaking FreeTDS.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Fazekas <fdsubs AT t-online.hu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Configuring PHP with GD is breaking FreeTDS.
  • Date: Wed, 3 Aug 2005 16:15:33 +0200


On Aug 3, 2005, at 15:51, Sleepite wrote:

I've installed FreeTDS and linked it up to PHP fine, it's excellent software
and runs perfectly! But now I'm also trying to install the GD graphics
library into PHP and it's breaking My FreeTDS connection.

Gee, now that's odd. It should prove interesting to find out what could cause such a weird problem. I never had a problem myself using the mssql extension alongside gd. Or even sybase_ct.

It's not unheard of to have a problem with two PHP extensions clashing with each other and breaking at compile time or being unable to load them both at the same time.
Only in your case, as I understand, both the compilation and the loading of the extensions went well.

Is this some kind of a Linux system? Which PHP and FreeTDS versions?

Here are some things to try:

1. Try compiling the extensions as shared.
eg. change
-with-sybase-ct=/usr/local/freetds
to --with-sybase-ct=shared,/usr/local/freetds

--with-gd=/usr/local
to --with-gd=shared,/usr/local

Don't forget to load the dynamically shared extensions somewhere then.
One way is adding lines such as
extension=gd.so
extension=sybase_ct.so
to your php.ini file.

2. PHP comes with its own improved and customized copy of GD. It's discouraged to use another copy of gd already on your system. So try

--with-gd
or
--with-gd=shared

3. Check what the FreeTDS logs say. Enabling logging in an Apache environment may prove to be a challenge and is left up to you to experiment with it if you really want to. :) It's easy to just use your command line CLI version of php however:

TDSDUMP=stdout TDSDUMPCONFIG=stdout php /path/to/your/php/script.php

--
fds





Archive powered by MHonArc 2.6.24.

Top of Page