Any intest in PHP 5.1/PDO Memory leaks?
| From: | Davey | Date: | Wed, 06 Apr 2005 02:24:52 +0000 |
| Subject: | Any intest in PHP 5.1/PDO Memory leaks? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15840@lists.php.net to get a copy of this message | ||
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