php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4512 Memory leaks Sybase for MSSQL using FreeTDS
Submitted: 2000-05-18 21:58 UTC Modified: 2000-09-04 18:24 UTC
From: wylie at pingzero dot net Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0 Release Candidate 2 OS: Linux 2.2.14-5.0smp
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wylie at pingzero dot net
New email:
PHP Version: OS:

 

 [2000-05-18 21:58 UTC] wylie at pingzero dot net
(2697)$ php -e sybase.html
X-Powered-By: PHP/4.0RC2
Content-type: text/html

1
1
There were 8 rows.
9DE1BF94-1F0F-11D4-A7FF-0008C7C54186<br>
9DE1BF8F-1F0F-11D4-A7FF-0008C7C54186<br>
9DE1BF94-1F0F-11D4-A7FF-0008C7C54186<br>
string.c(1658) :  Freeing 0x081EE3A4 (83 bytes), script=sybase.html
Last leak repeated 1 time
sybase.c(934) :  Freeing 0x081EDCFC (12 bytes), script=sybase.html
Last leak repeated 1 time


memory leaks?  This is a simple (even lame :-) script: to test with.  Any ideas, or
is there any data I can help supplement to make this problem easier to fix?

<?

        echo sybase_connect( "server", "user", "pwd" )."\n";
        echo sybase_select_db( "database" )."\n";

$result=sybase_query( "SELECT * FROM table" );
echo "There were ".sybase_num_rows($result)." rows.\n";
while ($tst = sybase_fetch_object($result))
{
        print $tst->f1."<br>\n";
}
$ok=sybase_free_result($result);
$ok=sybase_close();

?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 03:37 UTC] sniper@php.net
Does this problem still persist with more recent version of php (from CVS or http://snaps.php.net) ??

--Jani
 [2000-09-04 18:24 UTC] sniper@php.net
No feedback. Try latest CVS or snapshot from http://snaps.php.net/
and reopen this bug report if problem still exists.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 04:01:26 2024 UTC