View | Details | Raw Unified | Return to bug 112858
Collapse All | Expand All

(-)php5-oci8/files/patch-oci8_lob.c (+20 lines)
Line 0 Link Here
1
--- oci8_lob.c.orig	Thu Mar 29 11:33:03 2007
2
+++ oci8_lob.c	Tue May 22 12:33:23 2007
3
@@ -301,6 +301,7 @@
4
 	}
5
 
6
 	if (is_clob) {
7
+#ifdef OCI_NLS_CHARSET_MAXBYTESZ
8
 		PHP_OCI_CALL_RETURN(connection->errcode, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per_char, OCI_NLS_CHARSET_MAXBYTESZ));
9
 
10
 		if (connection->errcode != OCI_SUCCESS) {
11
@@ -308,6 +309,9 @@
12
 			PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
13
 			return 1;
14
 		}
15
+#else
16
+		bytes_per_char = 4;
17
+#endif
18
 	} else {
19
 		/* BLOBs don't have encoding, so bytes_per_char == 1 */
20
 	}

Return to bug 112858