Re: [PHP-DEV] Bug in ODBC module From: Andreas Karajannis (Andreas.Karajannis <email protected>)
Date: 06/12/98

Andi Gutmans wrote:
>
> Hi,
>
> I've found a coulpe of bugs in the ODBC module (although the more
> important bug might be me misunderstanding something):
> a) I checked out the source code. Where str.val is assigned empty_string
> str.len is NOT set to 0. It has to be set!!! So please whoever is in
> charge of the module, go through it and fix this.

Will look at this.

> b) The most important problem. When retreiving a memo field it ALWAYS has
> the number 1 appended to it. For example if I have a memo in MS Access
> "Today you need to buy fruit" and I print it from PHP I get "Today you
> need to buy fruit1". This doesn't happen when I change it's type to plain
> text. So it's probably some bug.
>
> This is real important to me although I worked around it by using the
> field type as text and not memo, so please try and see what's up with it.
> It's pretty hard to dive into this code and I really don't have time in
> this short weekend.
Eeek - if I remember things right, this was happening before and I
thought
I got things fixed. Btw: Are you using PHP on Windows?

-Andreas

-- 
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948