Edit report at http://bugs.php.net/bug.php?id=52942&edit=1
ID: 52942 Updated by: fel...@php.net Reported by: rdjebrouni at orangetango dot com Summary: PDO_ODBC with FreeTDS memory leak -Status: Open +Status: Feedback Type: Bug Package: ODBC related Operating System: Mac OS X 10.6 PHP Version: 5.3.3 Block user comment: N New Comment: Can you provide a valgrind log? Previous Comments: ------------------------------------------------------------------------ [2010-09-28 20:04:56] rdjebrouni at orangetango dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52942&edit=1