From: jhtpeter at gmail dot com Operating system: Linux PHP version: 5.2.0RC5 PHP Bug Type: OCI8 related Bug description: Oracle CLOB Charset Incorrect
Description: ------------ I use oic(Oracle Instance Client) to call php-oci functions with php 5.2.x-dev. The Oracle10g Database Server Charset is AL32UTF8. The Web Env NLS_LANG is "SIMPLIFIED CHINESE_CHINA.ZHS16GBK". When i get CLOB use oci_fetch_array with options OCI_RETURN_LOBS, php return incorrect charset. While VARCHAR2 COLUMN is correct. The same to oci_fetch_all. Reproduce code: --------------- $sql = "SELECT VARCHAR2_TITLE, CLOB_CONTENT FROM TEST"; oci_prase... oci_fetch_array... Expected result: ---------------- VARCHAR2_TITLE: ±êÌâ(correct charset in ZHS16GBK) CLOB_CONTENT: ÄÚÈÝ(correct charset in ZHS16GBK) Actual result: -------------- VARCHAR2_TITLE: ±êÌâ(correct charset in ZHS16GBK) CLOB_CONTENT: ÄÚÈÝ(incorrect charset in AL32UTF8) -- Edit bug report at http://bugs.php.net/?id=39103&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39103&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39103&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39103&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39103&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39103&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39103&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39103&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39103&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39103&r=support Expected behavior: http://bugs.php.net/fix.php?id=39103&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39103&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39103&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39103&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39103&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39103&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39103&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39103&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39103&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39103&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39103&r=mysqlcfg