[freetds] Segmentation fault retrieving non-NULL datetime fields
Robert Benjamin
freetds228 at lewenberg.com
Sat Nov 5 09:41:32 EST 2005
I am using freetds 0.63 with php 4.4.1. I have a simple script which
executes the query
"SELECT [DateModified] FROM PEOPLE WHERE LastName LIKE '%Smith%'
When fetching the data with the code
while ($row = $rs->fetchRow(DB_FETCHMODE_ASSOC))
{
print "Date modified is " . $row["DateModified"] . "\n" ;
}
if the DateModified is _not_ NULL, I get a segmentation fault. If the
field _is_ NULL, there is not a problem. The locales.conf is unchanged
from the one that comes with the distribution. I have been using php and
freetds for several years and have never seen this kind of problem.
Has anyone run across this kind of problem?
Thanks in advance,
Robert Benjamin
P.S. The software is running under Redhat Enterprise Linux 3.
More information about the FreeTDS
mailing list