Bug #6571 Updated: memory leak when selecting text type fields

From: Date: Sun, 06 Jan 2002 14:05:00 +0000
Subject: Bug #6571 Updated: memory leak when selecting text type fields
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76046@lists.php.net to get a copy of this message
ID: 6571 Updated by: mfischer Reported By: philip.day@edt.ericsson.se Old Status: Open Status: Feedback Bug Type: Sybase-ct (ctlib) related Operating System: solaris 2.7 PHP Version: 4.0.2 New Comment: Is this still valid for 4.1.1 ? Previous Comments: ------------------------------------------------------------------------ [2000-09-07 03:48:48] philip.day@edt.ericsson.se I think I've found the cause: The call to ct_describe made in sybase_result returns the max length of a text or image field (a very large value) in the maxlength property, rather than the actual length that is required for tmp_buffer. I tried changing maxlength property to a fixed value and the memory leak vanished. I'll try to figure out how to get the actual value. ------------------------------------------------------------------------ [2000-09-06 03:23:10] philip.day@edt.ericsson.se I am using the latest 11.1.1 openclient ct-lib. The database server is 11.9.3. I can connect, update and select without problems but as soon as there is a text type field in the result then the httpd process serving the request (apache 1.3.12) grows by 60 mb (topping out at 135 mb). I get the same problem with ct-lib running php 3.0.12 as well. I can use db-lib with 3.0.12 (same script), which works fine, so it's not a problem but php 4.0.2 doesn't work at all with db-lib.. regards Philip /configure --with-apxs=/opt/local/apache-ssl/bin/apxs --prefix=/usr/local --with-ldap=/usr/local/ldap --with-mcrypt=/usr/local/ --with-config-file-path=/opt/ local/apache-ssl/conf --enable-debug=no --enable-magic-quotes --enable-bcmath --enable-track-vars --with-sybase-ct=/opt/sybase/openclient/11.1.1 --without-mysql ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=6571&edit=1

« previous php.dev (#76046) next »