Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15840 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25644 invoked by uid 1010); 6 Apr 2005 02:27:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25475 invoked by uid 1007); 6 Apr 2005 02:27:27 -0000 Message-ID: <20050406022723.25474.qmail@lists.php.net> To: internals@lists.php.net Date: Tue, 05 Apr 2005 22:24:52 -0400 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 67.8.0.212 Subject: Any intest in PHP 5.1/PDO Memory leaks? From: davey@php.net (Davey) Hey, I have a ORM wrapper for PDO which I've been working on for several weeks. Whilst all of my .phpt tests work just fine on PHP 5.0.4 (or snaps, depends on my mood) with snaps PDO binaries on WinXP. As Wez knows, there are issues with OSX/PHP 5.0.x/PDO, so on Rasmus' advice I went with current CVS HEAD PHP. When I ran the tests on OSX, I got a bunch of failures, now when I went to test why I got a segfault. So, I compiled a --enable-debug build and now get plenty of memory leaks. Is this interesting to anyone? The following looks like the most serious, but I don't have a clue about these things :) /Library/WebServer/public_html/php-cvs/php-src/ext/pdo/pdo_stmt.c(830) : Freeing 0x01FF3658 (16 bytes), script=/Library/WebServer/public_html/cerebralcortex/packages/Crtx_DB/tests/Crtx_DB_DataObject/Find_No_ID.php Last leak repeated 179 times /Library/WebServer/public_html/php-cvs/php-src/ext/pdo/pdo_stmt.c(471) : Freeing 0x01FF3398 (13 bytes), script=/Library/WebServer/public_html/cerebralcortex/packages/Crtx_DB/tests/Crtx_DB_DataObject/Find_No_ID.php Last leak repeated 179 times === Total 360 memory leaks detected === I have 15 different tests failing with mem leaks. - Davey