go to bug id or search bugs for
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..
/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
Add a Patch
Add a Pull Request
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.
Is this still valid for 4.1.1 ?