]> granicus.if.org Git - php/commitdiff
fix build with old client versions
authorAntony Dovgal <tony2001@php.net>
Fri, 10 Nov 2006 21:57:04 +0000 (21:57 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 10 Nov 2006 21:57:04 +0000 (21:57 +0000)
ext/oci8/oci8_lob.c

index 64bb35bf07104aa92cd927432b09ddae8384c217..12c1d4fea210a03276f5a26e6c91f75c500e1721 100644 (file)
@@ -341,7 +341,7 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, long read_length, long ini
        );
        
        efree(bufp);
-       if (!is_clob) {
+       if (lob_type == OCI_IS_BLOB) {
                offset = descriptor->lob_current_position + TEXT_BYTES(bytes_read);
        } else {
                offset = descriptor->lob_current_position + bytes_read;