Date: Wed, 13 Dec 2000 18:16:02 -0700 From: "=?iso-8859-1?Q?Joaqu=EDn_Hern=E1ndez_Rico?=" <joaquinh01@uswest.net> To: freebsd-database@FreeBSD.ORG Cc: "Imdat Solak" <iso@burdadigital.com> Subject: PHP4 accessing Sybase with freetds Message-ID: <001701c0656b$6cc798a0$0300000a@joaquinhr> References: <20000803161257.26001@mail.bd.intern> <19340821093947.27766@mail.bd.intern>
next in thread | previous in thread | raw e-mail | index | archive | help
Well, before I give up and try to Compile PHP from sources, I want to give the fBSD ports and myself one more chance: On a FreeBSD 4.1-Stable box, I tried installing Apache and PHP (3 _and_ 4) with Sybase support from both the CD Packages and the Ports collection. Both of these installation methods use FreeTDS. I have checked and rechecked all the different configuration files and everything seems to be in order, but when I try to connect to our Sybase 7.0 database at work, I get an "invalid marker: 0!!" error message. This happens even when using "sqsh", except that when the connection is attempted by PHP, the error message goes into the /var/log/httpd-errors.log file. Apparently, PHP keeps trying to connect indefinitely, for the log file grows until it fills the space available in the partition where /var is mounted(100 Mb). Has anyone experienced this? I guess my next step will be to get the source code for FreeTDS, PHP and maybe even Apache and compile it. Then if that still does not work, I'll get the now available Sybase FreeBSD distribution... Any information will be greatly appreciated! Thanks in advance, Joaquín Hernández Rico ____________________________________________________________________________ ________ The Computer is mightier than the sword, the pen and, usually, the programmer. joaquinh01@uswest.net ----- Original Message ----- From: "Imdat Solak" <iso@burdadigital.com> To: <freebsd-database@FreeBSD.ORG> Cc: <frank@cyberlab.de> Sent: Tuesday, September 26, 2000 9:08 AM Subject: Bug in PHP4 accessing Sybase with freetds > Hello, > > couple of people reported that there is a bug accessing Sybase by > using PHP4.0.1pl1 with freetds on FreeBSD 3.4 with Apache. > > Namely, Apache crashes with a "Segmentation fault" when you do a > DELETE, INSERT or UPDATE in the Sybase DB. > > The crash happens only after successfull DELETE, INSERT or UPDATE > statements, i.e. if there was a DB-error (cannot delete, insert > or update), then Apache doesn't crash. > > I followed the bug and found first a workaround and second a solution, > which works on my site. > > As not everybody is interested in this topic, I put the doc describing > the solution on my site: > > http://www.imdat.de/php/sybase_php_freetds_bug.txt > > I will send this to PHP.NET and to the freetds-guys, too, as the bug > is in both, freetds AND php4 (I also checked PHP4.0.2, it still has > the same bug). > > Hope to have helped > best > imdat > -- > Imdat Solak > Burda Digital GmbH * Arabellastr. 23 * 81925 Munich * Germany > iso@burdadigital.com * +49-89-9250-2714 * -2190 (fax) > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-database" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001701c0656b$6cc798a0$0300000a>