|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-29 15:30 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2010-09-29 15:30 UTC] felipe@php.net
[2010-09-29 23:47 UTC] rdjebrouni at orangetango dot com
[2010-09-30 00:18 UTC] rdjebrouni at orangetango dot com
[2010-09-30 00:19 UTC] rdjebrouni at orangetango dot com
-Summary: PDO_ODBC with FreeTDS memory leak
+Summary: PDO_ODBC with FreeTDS makes php-cgi to crash
-Status: Feedback
+Status: Open
[2010-09-30 00:19 UTC] rdjebrouni at orangetango dot com
[2010-09-30 00:27 UTC] rdjebrouni at orangetango dot com
[2011-11-16 14:15 UTC] felipe@php.net
[2011-11-16 14:15 UTC] felipe@php.net
-Status: Open
+Status: Bogus
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 16:00:01 2025 UTC |
Description: ------------ - php compiled with no errors with the options: ./configure --prefix=/srv/php-5.3.3 \ --with-pdo-mysql=/srv/mysql-5.1.51 \ --with-pdo-dblib=/srv/freetds-0.82 \ --with-pdo-odbc=unixODBC,/srv/unixodbc-2.3.0 \ --enable-mbstring \ --enable-fastcgi \ --enable-memory-limit \ --enable-discard-path \ --enable-force-cgi-redirect - php runs with mod_fastcgi - The same day I installed the exactly same set up on a Linux Debian Lenny server and everything runs perfectly. Test script: --------------- $usr = 'sa'; $pwd = 'xxx'; $db = 'DBNAME'; $host = 'X.X.X.X'; $port = '1433'; try { $dbh = new PDO('odbc:Driver=FreeTDS; Server=' . $host . '; Port=' . $port . '; Database=' . $db . '; UID=' . $usr . '; PWD=' . $pwd . ';', $usr, $pwd); echo 'PDO_ODBC connected with no errors'; } catch (PDOException $e) { echo $e->getMessage(); } Expected result: ---------------- PDO_ODBC connected with no error Actual result: -------------- From the apache error log: [Tue Sep 28 13:31:55 2010] [error] [client 127.0.0.1] php-cgi(84874) malloc: *** error for object 0x100a1658b: pointer being freed was not allocated, referer: http://local.dev.XXX/mssql [Tue Sep 28 13:31:55 2010] [error] [client 127.0.0.1] *** set a breakpoint in malloc_error_break to debug, referer: http://local.dev.XXX/mssql