From owner-freebsd-database Tue Sep 26 9:10:15 2000 Delivered-To: freebsd-database@freebsd.org Received: from gg.burdadigital.com (mail.incubate.de [212.14.77.2]) by hub.freebsd.org (Postfix) with ESMTP id C14E037B424 for ; Tue, 26 Sep 2000 09:10:05 -0700 (PDT) Received: by gg.burdadigital.com (8.9.3/8.9.3) id SAA06861; Tue, 26 Sep 2000 18:12:48 +0200 (CEST) Received: (from localhost) by gg.burdadigital.com (MSCAN) id 2/gg.burdadigital.com/smtp-gw/mscan; Tue Sep 26 18:12:48 2000 From: Imdat Solak To: Cc: Subject: Bug in PHP4 accessing Sybase with freetds Date: Tue, 26 Sep 2000 18:08:03 +0200 Message-Id: <19340821093947.27766@mail.bd.intern> In-Reply-To: <20000803161257.26001@mail.bd.intern> References: <20000803161257.26001@mail.bd.intern> X-Mailer: CTM PowerMail 3.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-database@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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