[PHP-DEV] Bug #6571 Updated: memory leak when selecting text type fields
ID: 6571 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: No Feedback Bug Type: Sybase-ct (ctlib) related Operating System: solaris 2.7 PHP Version: 4.0.2 New Comment: No feedback. Previous Comments: [2002-01-06 09:05:00] [EMAIL PROTECTED] Is this still valid for 4.1.1 ? [2000-09-07 03:48:48] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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=6571edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #6571 Updated: memory leak when selecting text type fields
ID: 6571 Updated by: mfischer Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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=6571edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]