Index: ext/oci8/oci8.c =================================================================== RCS file: /repository/php-src/ext/oci8/oci8.c,v retrieving revision 1.257.2.5 diff -u -r1.257.2.5 oci8.c --- ext/oci8/oci8.c 22 Nov 2004 21:46:49 -0000 1.257.2.5 +++ ext/oci8/oci8.c 14 Dec 2004 14:57:19 -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;