Index: ext/oci8/oci8.c =================================================================== RCS file: /repository/php-src/ext/oci8/oci8.c,v retrieving revision 1.265 diff -u -r1.265 oci8.c --- ext/oci8/oci8.c 22 Nov 2004 21:44:42 -0000 1.265 +++ ext/oci8/oci8.c 14 Dec 2004 14:55:39 -0000 @@ -1958,6 +1958,10 @@ if (outcol->data_type == SQLT_BIN) { outcol->storage_size4 *= 3; } + else { + /* twice the buffer length to support multibyte encodings */ + outcol->storage_size4 *= 2; + } dynamic = OCI_DEFAULT; buf = outcol->data = (text *) emalloc(outcol->storage_size4); break;