php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18406 PHP 4.2.1, APACHE 1.3.26, FREETDS 5.1
Submitted: 2002-07-18 05:09 UTC Modified: 2002-07-18 07:30 UTC
From: claus dot pruefer at yoc dot de Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.2.1 OS: Suse Linux 7.3 glibc i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: claus dot pruefer at yoc dot de
New email:
PHP Version: OS:

 

 [2002-07-18 05:09 UTC] claus dot pruefer at yoc dot de
sorry, i didnt backup the
gdb STACK...

but it reported an ERROR in

chunk_free() in 'glibc.so'

and terminated with a SEGMENTATION FAULT
which was written in the APACHE HTTPD_LOG

and the error is absolutely reproducable
i compiled php, apache and freetds
with DSO support and with libphp4.a

WHEN YOU DONT CALL DB_FUNCTIONS EVERYTHING WORKS FINE...
JUST FREETDS_FUNCTIONS...

then i tried iODBC WITH OPEN_LINK
here: no SEGMENTATION FAULTS, just VERY STRANGE
behavior in 'ORDER BY QUERIES' and 'TOP x' QUERIES WITH MSSQL_SERVER queries...

ok,
hopefully that will help...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-18 05:11 UTC] claus dot pruefer at yoc dot de
oh, i forgot:
with php-4.0.7RC1,
apache 1.3.12
freetds 0.52 everything works fine...
 [2002-07-18 07:30 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2004-04-12 01:00 UTC] swingcoder at msn dot com
??Ц
 [2004-04-12 01:27 UTC] swingcoder at msn dot com
i have solve the problem.
1.compile freedts:
./configure --prefix=/usr/local/php/modules/freetds --sysconfdir=/usr/local/php/modules/freetds --enable-static --enable-shared --enable-msdblib

2.compile php:
./configure --prefix=/usr/local/php --enable-magic-quotes --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-freetype-dir --with-mssql=/usr/local/php/modules/freetds --with-sybase=/usr/local/php/modules/freetds

3.edit /etc/hosts,and add line:
your_server_IP YOURSERVERNAME

4.configure freedts.conf
[YOURSERVERNAME]
        host = YOURSERVERNAME
        port = 1433
        tds version = 8.0
        client charset = UTF-8
5.finished
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 09:01:29 2025 UTC