|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-09 08:53 UTC] max at e-kazan dot ru
[2006-06-09 08:54 UTC] max at e-kazan dot ru
[2006-06-12 07:09 UTC] tony2001 at phpclub dot net
[2006-07-07 06:50 UTC] max at e-kazan dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
Description: ------------ PHP 5.1.4 oci8 1.2.1, compiled as shared Oracle InstantClient 10.2 Oracle 10g When I fetch LOB fields from DB using OCI-Lob->load() they come truncated Reproduce code: --------------- putenv('NLS_LANG=RUSSIAN_CIS.UTF8'); $con = oci_connect('username', 'password', '//db/sid'); $query = "SELECT * FROM news"; $stmt = oci_parse($con, $query); oci_execute($stmt); while ($row = oci_fetch_array($stmt, OCI_RETURN_NULLS)) { foreach ($row as $key => $value) { if (is_object($value) && get_class($value) == 'OCI-Lob') $value = $value->load(); echo "$key => $value<br />"; } } Expected result: ---------------- LOB fields not truncated Actual result: -------------- LOB fields are truncated