From: t_wiedmann at t-online dot de Operating system: Win XP PHP version: 5.2.4 PHP Bug Type: PDO related Bug description: OCI Oracle Connect error: OCINlsCharSetNameToId
Description: ------------ Hi, if I try to connect to Oracle DB I get this error since PHP 5.2.4, with 5.2.0 or 5.2.1 work well Regards, Thomas Reproduce code: --------------- <?php /** * php.ini (v5.2.4) * * ; Windows Extensions * extension=php_pdo.dll * extension=php_pdo_oci.dll * */ define('DBUSER','user'); define('DBPASS','password'); define('DBNAME','database'); try { // Connect to Oracle Windows v9.2 or v10 $dbh = new PDO('oci:dbname='.DBNAME.';charset=ISO-8859-1',DBUSER,DBPASS); echo 'Connect ok'; $dbh = null; } catch (PDOException $e) { // Connect failed: SQLSTATE[HY000]: OCINlsCharSetNameToId: unknown character set name (ext\pdo_oci\oci_driver.c:488) echo 'Connect failed: '; echo $e->getMessage(); die(); } ?> Expected result: ---------------- Connect ok Actual result: -------------- Connect failed: SQLSTATE[HY000]: OCINlsCharSetNameToId: unknown character set name (ext\pdo_oci\oci_driver.c:488) -- Edit bug report at http://bugs.php.net/?id=42563&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42563&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42563&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42563&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42563&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42563&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42563&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42563&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42563&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42563&r=support Expected behavior: http://bugs.php.net/fix.php?id=42563&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42563&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42563&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42563&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42563&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42563&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42563&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42563&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42563&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42563&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42563&r=mysqlcfg