PHP 4.0 Bug #2717: Odd output from cgi...is this a memory leak?
| From: | joey at samaritan dot com | Date: | Sat, 13 Nov 1999 09:19:45 +0000 |
| Subject: | PHP 4.0 Bug #2717: Odd output from cgi...is this a memory leak? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12435@lists.php.net to get a copy of this message | ||
From: joey@samaritan.com
Operating system: Linux 2.2.5
PHP version: 4.0 Latest CVS (13/11/1999)
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: Odd output from cgi...is this a memory leak?
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