php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2717 Odd output from cgi...is this a memory leak?
Submitted: 1999-11-13 04:19 UTC Modified: 2000-02-12 21:14 UTC
From: joey at samaritan dot com Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 4.0 Latest CVS (13/11/1999) OS: Linux 2.2.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joey at samaritan dot com
New email:
PHP Version: OS:

 

 [1999-11-13 04:19 UTC] joey at samaritan dot com
function db_array($f, $t, $order, $min, $max)
{

     global $db;
     $q = sybase_query( "SELECT $f from $t WHERE $order BETWEEN $min and $max ORDER BY $order", $db);
     $i = 0;  
     while ($a = sybase_fetch_array( $q ))
     {
      $r[$i] = $a[0];
      $i++;
     }
     if (is_array($r)) return $r;
     return 0;
}

Whenever I call this function, I get:
cgi_main.c(323) :  Freeing 0x081EE7D0 (2 bytes), script=i


configure is 
./configure --with-zlib  --enable-bcmath  --with-mm   \
--with-sybase-ct=/usr/local/sybase  --enable-trans-sid \
--with-db2  --enable-dmalloc   --with-gd --with-ttf \
--with-imap --with-ftp --with-mysql --with-xml  \
--enable-force-cgi-redirect

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-13 16:28 UTC] joey at cvs dot php dot net
Fixed in CVS...thanks, guys.
 [2000-02-12 21:14 UTC] andi at cvs dot php dot net
Forgot to close this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC