ID: 7437
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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


-- 
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]

Reply via email to