From:             dave dot lane at gmx dot net
Operating system: Linux
PHP version:      5.2.4
PHP Bug Type:     ODBC related
Bug description:  odbc_pconnect: persisent connections with different locales

Description:
------------
We have an environment where we both use odbc_pconnect and different
locales. DB2 recognises the locale and returns data formatted based on this
locale. That means when we do a setlocale(LC_ALL, de_DE); before we connect
we get float formatted so: 1,23541200000000E+004 and when we do a
setlocale(LC_ALL, en_GB); we get float formatted so 1.23541200000000E+004.
This works fine when we use odbc_connect. The problem is when we use
odbc_pconnect connections are recycled without taking the locale into
account. Sometimes we get english when we have set german and vice versa. 


-- 
Edit bug report at http://bugs.php.net/?id=42493&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42493&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42493&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42493&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42493&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42493&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42493&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42493&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42493&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42493&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42493&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42493&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42493&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42493&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42493&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42493&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42493&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42493&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42493&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42493&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42493&r=mysqlcfg

Reply via email to