Re: PDO PgSQL: _pdo_pgsql_notice
| From: | Samuel ROZE | Date: | Wed, 07 Oct 2009 13:29:28 +0000 |
| Subject: | Re: PDO PgSQL: _pdo_pgsql_notice | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45689@lists.php.net to get a copy of this message | ||
Le mercredi 07 octobre 2009 à 07:57 +0200, Samuel ROZE a écrit :
> Well, i've show the patch this morning... It's great ! The allocation of
> the HashTable when use setAttribute might not be really a good job but
> other, in my mind, is !
>
> See you afternoon for PHP 5.2 path. :-)
Well, I've done a patch for PHP 5.2 branch:
http://www.d-sites.com/wp-content/uploads/2009/10/pdo_pgsql_notices_php5.2.patch
It is working but there are two memory leaks when running with CGI:
[Wed Oct 7 15:20:10 2009] Script: 'pgsql_notice.php'
/usr/src/php-5.2.10/ext/pdo_pgsql/pgsql_driver.c(105) : Freeing
0x01C43A80 (24 bytes), script=pgsql_notice.php
[Wed Oct 7 15:20:10 2009] Script: 'pgsql_notice.php'
/usr/src/php-5.2.10/ext/pdo_pgsql/pgsql_driver.c(55) : Freeing
0x01C43AF0 (22 bytes), script=pgsql_notice.php
=== Total 2 memory leaks detected ===
Joined, the pgsql_driver.c file.
Attachment: [text/x-csrc] pgsql_driver.c
Attachment: [text/x-csrc] pgsql_driver.c