|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2006-05-26 09:53 UTC] antonio dot pascual at es dot francetelecom dot com
 Description: ------------ PHP hang loading a clob from Oracle. With earlier versions it didn't occur. The same happends with version php5.2-200605251030. Reproduce code: --------------- The table created with the data and the php script to reproduce the bug is available here: http://antback.com/doc/php/ocilobbug.txt Expected result: ---------------- The expected result was: aaaaaa bbbbbbbbb aa bb Actual result: -------------- The result: aaaaaa bbbbbbbbb and php hangs. You can see the output of oci_internal_debug here: http://antback.com/doc/php/ocilobresult.txt PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
OIC 10.1.0.3 and Oracle 10g Release 10.2.0.1.0. I'm playing with the code, because with php version 1.5.2 works fine but with 1.5.3 and further don't works. I have patched the file ext/oci8/oci8_lob.c with this: 153a154 > ub4 block_length = PHP_OCI_LOB_BUFFER_SIZE; 186a188,191 > if (requested_len < block_length) { > requested_len = block_length; > } > 243a249,251 > > requested_len = PHP_OCI_LOB_BUFFER_SIZE; > and works but in any case I am going to test the example in another machine and with other version of Oracle Server. Maybe my system has something wrong ... Thanks.