Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #42563 : OCI Oracle Connect error: OCINlsCharSetNameToId
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 6th August 03:33
php-bugs
External User
 
Posts: 1
Default #42563 : OCI Oracle Connect error: OCINlsCharSetNameToId



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
  Reply With Quote


  sponsored links


2 6th August 06:21
php-bugs
External User
 
Posts: 1
Default #42563 : OCI Oracle Connect error: OCINlsCharSetNameToId



ID: 42563
User updated by: t_wiedmann at t-online dot de
Reported By: t_wiedmann at t-online dot de
Status: Open
Bug Type: PDO related
Operating System: Win XP
PHP Version: 5.2.4
New Comment:

In the meantime, I have moved to PHP v5.2.3. This Version work well.

Regards
Thomas


Previous Comments:
------------------------------------------------------------------------

[2007-09-05 12:38:36] t_wiedmann at t-online dot de

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 this bug report at http://bugs.php.net/?id=42563&edit=1
  Reply With Quote
3 6th August 23:45
External User
 
Posts: 1
Default #42563 : OCI Oracle Connect error: OCINlsCharSetNameToId


ID: 42563
Updated by: sixd@php.net
Reported By: t_wiedmann at t-online dot de
-Status: Open
+Status: Bogus
Bug Type: PDO related
Operating System: Win XP
PHP Version: 5.2.4
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

----------
Use an Oracle character set name. The value you are passing is ignored
prior to PHP 5.2.4 because it is invalid.

A list of character sets is in the Oracle do***entation:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref1958
----------


Previous Comments:
------------------------------------------------------------------------

[2007-09-06 08:01:50] t_wiedmann at t-online dot de

In the meantime, I have moved to PHP v5.2.3. This Version work well.

Regards
Thomas

------------------------------------------------------------------------

[2007-09-05 12:38:36] t_wiedmann at t-online dot de

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 this bug report at http://bugs.php.net/?id=42563&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666