Re: PHP 4.0 Bug #4512: Memory leaks Sybase for MSSQL using FreeTDS
| From: | Wylie Swanson | Date: | Fri, 19 May 2000 06:08:51 +0000 |
| Subject: | Re: PHP 4.0 Bug #4512: Memory leaks Sybase for MSSQL using FreeTDS | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18938@lists.php.net to get a copy of this message | ||
The following is the report back from Brian, author and maintainer of the FreeTDS
library.
- - - snip - - -
This appears to only happen if a char or varchar column is in the select.
Off hand, I can't be sure whether this is a FreeTDS or a PHP problem...
sybase_fetch_object calls sybase_fetch_hash which has no calls to FreeTDS
at all. I'll verify this against Sybase's dblib tommorow morning
(hopefully). There is a call to MAKE_STD_ZVAL in sybase_fetch_hash which
is (apparently) causing the leak. I'm not exactly up to speed on the new
zend engine in php4, but this is where the allocation and initialization
of reference counting is done. Presumably sybase_free_result should clean
this up but doesn't !? Anyway, I'll know more tommorow when I test
against OpenClient.
A cursory look at the freetds code didn't turn up any obvious leaks.
Brian
- - - snip - - -
I'll report back tomorrow as well if Brian and I turn anything up that may be of
benefit to the PHP side of the fence.
Best regards,
Wylie