Sybase/FreeTDS compiles & runs OK - but leaks?

From: Date: Mon, 19 Jul 1999 18:18:05 +0000
Subject: Sybase/FreeTDS compiles & runs OK - but leaks?
Groups: php.version4 
Request: Send a blank email to php-version4+get-2237@lists.php.net to get a copy of this message
I've finally managed to get the FreeTDS module to compile with PHP4/Zend & Sybase support (there's problems with namespace clash on the FreeTDS side with dbopen() being used)... I've just successfully run the test script through the server, but I get the following in apache_error.log... " /usr2/httpd/docs/test.aspx: Freeing 0x08F516E0 (4 bytes), allocated in zend_hash.c on line 185<br> /usr2/httpd/docs/test.aspx: Last leak repeated 41136 times /usr2/httpd/docs/test.aspx: Freeing 0x08F52A20 (44 bytes), allocated in zend_hash.c on line 175<br> /usr2/httpd/docs/test.aspx: Last leak repeated 41136 times /usr2/httpd/docs/test.aspx: Freeing 0x08872DE0 (4 bytes), allocated in zend_hash.c on line 391<br> /usr2/httpd/docs/test.aspx: Last leak repeated 25 times /usr2/httpd/docs/test.aspx: Freeing 0x08874AA0 (35 bytes), allocated in zend_hash.c on line 380<br> /usr2/httpd/docs/test.aspx: Last leak repeated 25 times /usr2/httpd/docs/test.aspx: Freeing 0x088748A0 (65 bytes), allocated in zend_variables.c on line 120<br> /usr2/httpd/docs/test.aspx: Last leak repeated 24 times /usr2/httpd/docs/test.aspx: Freeing 0x08872CE0 (20 bytes), allocated in sybase.c on line 929<br> /usr2/httpd/docs/test.aspx: Last leak repeated 24 times " Last CVSUP was around 19.00 on 19/7/99. Script that causes it is: ? printf( "<P>Sybase Connect</P>" ); $sql = sybase_connect( "dolphin.dmpriest.com", "XXXXXX", "XXXXXXXXXX" ); printf( "<P>sql = ".$sql."</P>" ); if( $sql == false ){ printf( "Failed SQL connect.\n" ); exit(); } printf( "Connected OK.\n" ); printf( "<P>Sybase Query</P>" ); $q = sybase_query( "SELECT * FROM view_domname" ); if( $q == false ){ printf( "Query failed.\n" ); sybase_close( $sql ); } printf( "<P>Sybase fetch...</P>" ); while( $r = sybase_fetch_array( $q ) ){ printf( "<P>%s, %s, %s</P>", $r["name"], $r["domain_id"], $r["parent_org_id"] ); } sybase_close( $sql ); ?> --- -Karl

« previous php.version4 (#2237) next »