#48672 [NEW]: ORA-12705 when using NLS_LANG
From: dima at dimych dot sumy dot ua
Operating system: FreeBSD 6.4
PHP version: 5.2.10
PHP Bug Type: OCI8 related
Bug description: ORA-12705 when using NLS_LANG
Description:
------------
I`m trying to connect from my FreeBSD box using oracle8 client (from
freebsd-ports) to Oracle 8.1.7 server.
oci_new_connect fails when setting NLS_LANG environment variable. Without
setting NLS_LANG connection successful. Perl script with same parameters
successfully connects.
Reproduce code:
---------------
PHP script:
<?php
putenv('ORACLE_HOME=/usr/local/oracle8-client');
//putenv('NLS_LANG=RUSSIAN_CIS.CL8KOI8R');
putenv('NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1');
$dbh = oci_new_connect('user', 'pass', 'DBNAME');
var_dump($dbh);
var_dump(OCIError());
?>
Perl script:
#!/usr/bin/perl
use DBI;
BEGIN {
$ENV{ORACLE_HOME} = '/usr/local/oracle8-client';
# $ENV{NLS_LANG} = 'RUSSIAN_CIS.CL8KOI8R';
$ENV{NLS_LANG} = 'AMERICAN_AMERICA.WE8ISO8859P1';
}
$dbh = DBI->connect("dbi:Oracle:DBNAME", "user", 'pass',
{AutoCommit => 1,
PrintWarn => 1, PrintError => 1})
or die $DBI::errstr;
print $dbh;
print "\n";
Expected result:
----------------
successful connection:
bool(true)
Actual result:
--------------
PHP result:
bool(false)
array(4) {
["code"]=>
int(12705)
["message"]=>
string(59) "ORA-12705: invalid or unknown NLS parameter value
specified"
["offset"]=>
int(0)
["sqltext"]=>
string(0) ""
}
end
Segmentation fault: 11 (core dumped)
Perl result:
DBI::db=HASH(0x8224024)
--
Edit bug report at http://bugs.php.net/?id=48672&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48672&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48672&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48672&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48672&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48672&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48672&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48672&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48672&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48672&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48672&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48672&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48672&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48672&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48672&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48672&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48672&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48672&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48672&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48672&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48672&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48672&r=mysqlcfg
Thread (2 messages)
- dima at dimych dot sumy dot ua