|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-11 11:09 UTC] spatar at mail dot nnov dot ru
[2006-05-12 13:55 UTC] matuszynski at element5 dot de
[2006-05-15 09:07 UTC] tony2001@php.net
[2006-05-15 10:17 UTC] spatar at mail dot nnov dot ru
[2006-05-15 10:31 UTC] tony2001@php.net
[2006-05-15 12:19 UTC] spatar at mail dot nnov dot ru
[2006-05-15 13:56 UTC] tony2001@php.net
[2006-05-23 01:00 UTC] php-bugs at lists dot php dot net
[2006-06-02 09:16 UTC] spatar at mail dot nnov dot ru
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 11:00:01 2025 UTC |
Description: ------------ Can't load lob string. It seems, OCI8 calculates wrong size in _bytes_ for UTF strings to load. My Oracle database charset is AL32UTF8, so maybe it's the cause of that the load() method returns only the first 1/4 part of a string. The older versions didn't have this bug. Reproduce code: --------------- <?php $conn = oci_connect("scott", "tiger", "ora10201"); $sql = "begin :p_clob := 'abcdefghijklmnopqrstuvwxyz'; end;"; $stid = oci_parse($conn, $sql); $clob = oci_new_descriptor($conn, OCI_D_LOB); oci_bind_by_name($stid, ":p_clob", $clob, -1, OCI_B_CLOB); $r = oci_execute($stid, OCI_DEFAULT); if ($r) { echo "size(): ", $clob->size(), "\n"; echo "load(): ", $clob->load(), "\n"; } $clob->free(); oci_free_statement($stid); oci_close($conn); ?> Expected result: ---------------- size(): 26 load(): abcdefghijklmnopqrstuvwxyz Actual result: -------------- size(): 26 load(): abcdef