Problems with image fields

Dave Brotherstone davegb at pobox.com
Mon Apr 15 13:54:07 EDT 2002


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')
>
>




More information about the FreeTDS mailing list