Skip to Content.
Sympa Menu

freetds - Re: Problems with image fields

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Dave Brotherstone" <davegb AT pobox.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Problems with image fields
  • Date: Mon, 15 Apr 2002 12:54:07 +0100


I can *almost* bet it's PHP - there's a section of code that sets out what
to do based on the datatype - and only some are defined. If it doesn't hit
one of the case statements, then it does a dbconvert() - and that bit seems
to break on varbinary types etc - the same query will work fine from sqsh.

Dave.



>
> Wouldn't hurt, I'll see if I can't take a crack at it in the meantime.
> You said you were using TDS 7.0, current snapshot of FreeTDS, and
> PHP 4.1.2
> right? Are you using --with-sybase or --with-sybase-ct?
>
> I wont be getting to it tonight but hopefully I can look at it tomorrow.
>
> The other thing to try, and this may be quicker, is to compile PHP as CGI
> and then run it under gdb, when it segfaults to a 'bt' or 'where' to get
> the stack trace and post it. That will tell us whether it is crashing
> inside freetds or php.
>
> Brian
>
> On Sun, 14 Apr 2002, Matthew Gamble wrote:
>
> > Thanks. It now works from sqsh, but still seg faults apache. I am
> > setting textsize inside the stored proc, so I know it is now
> getting set.
> >
> > I assume now that this is a PHP issue, and not a freetds issue?
> Should I
> > file a PHP bug report? I'm using PHP 4.1.2
> >
> > Regards,
> >
> > M. Gamble
> >
>
>
> ---
> You are currently subscribed to freetds as: [davegb AT pobox.com]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page