Bug #7437 Updated: Long memo fields are truncated

From: Date: Thu, 21 Jun 2001 15:28:34 +0000
Subject: Bug #7437 Updated: Long memo fields are truncated
Groups: php.dev 
Request: Send a blank email to php-dev+get-57554@lists.php.net to get a copy of this message
ID: 7437 Updated by: kalowsky Reported By: norbertoh@hotmail.com Old-Status: Feedback Status: Closed Bug Type: ODBC related Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: no user feedback. considered fixed in cvs... if not, please reopen the bug. Previous Comments: --------------------------------------------------------------------------- [2001-05-31 11:31:16] kalowsky@php.net this is possibly fixed by the fact that uodbc_ is now just odbc_ in the ini file. try that on a current release and see if it still occurs please! --------------------------------------------------------------------------- [2000-10-26 10:31:33] norbertoh@hotmail.com phpinfo() reports: Directive: odbc.defaultlrl Local Value: return up to 4096 bytes Master Value: return up to 4096 bytes Setting odbc_longreadlen() solves the problem but, why the PHP.INI has no effect? --------------------------------------------------------------------------- [2000-10-26 04:06:10] kara@php.net What does phpinfo() report about the value of defaultlrl? Does truncation also happen when setting the length with odbc_longreadlen() manually? --------------------------------------------------------------------------- [2000-10-24 15:22:15] norbertoh@hotmail.com The php file has the following structure: <? $conn = odbc_connect("tar_CHT", "", ""); $mapas = odbc_do($conn,"SELECT * FROM País_Mapas WHERE CStr([ID_País])=1 "); ?> ... <? echo odbc_result($mapas,"Codigo_HTML") ?> Where "tar_CHT" is a system DSN of an Access database, "Pais_Mapas" is a table and "Codigo_HTML" is a memo field. This field sometimes have more than 4K characters. Working with PHP3: In PHP3.INI, if i leave the uodbc.defaultlrl parameter in 4096, sometimes the "Codigo_HTML" field is truncated. I solve the problem changing that value to, for example, 8192. Working with PHP4: In PHP.INI, if i change the uodbc.defaultlrl parameter to 8192, the field is still truncated. Both PHP3.INI and PHP.INI are in the "Winnt" directory. Other parameters in the .INI files remain with the default values. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7437&edit=2

« previous php.dev (#57554) next »