From:             gkplus at gmail dot com
Operating system: MS Win XP32
PHP version:      5.2.5
PHP Bug Type:     PDO related
Bug description:  String longer then 256 mish-mash

Description:
------------
String mish-mash. Character string longer then 256 chars mish-mash at the
end of the string.
ODBC Driver in other application work ok.
Regulary mish-mash on all strings longer then 256. 

Reproduce code:
---------------
$dsn = "odbc:DRIVER={Progress OpenEdge 10.1A
driver};HOST=localhost;DB=soja;UID=abc;PWD=xyz;PORT=23900";
$dbh = new PDO($dsn);
$sql = 'SELECT
  certyfikaty.nr_certyfikatu,
  certyfikaty.zakres,
  firmy.nazwa_firmy 
FROM PUB.certyfikaty, PUB.firmy
  WHERE  certyfikaty.id_firmy = firmy.id_firmy;

$stmt = $dbh->prepare($sql);
$stmt->execute();
$stmt->bindColumn(1, $nr_certyfikatu, PDO::PARAM_STR, 16);
$stmt->bindColumn(2, $zakres, PDO::PARAM_STR, 512);   
$stmt->bindColumn(3, $nazwa_firmy, PDO::PARAM_STR, 64);   

while ($row = $stmt->fetch(PDO::FETCH_BOUND)){
        echo "<td>".$nr_certyfikatu."</td>";
        echo "<td>".$nazwa_firmy."</td>";
        echo "<td>".$zakres."</td>";
        echo "</tr>";}
$dbh = null;


Expected result:
----------------
echo "<td>".$zakres."</td>" 
---------------------------
Dostawy, monta¿, uruchamianie i serwis systemów i urz¹dzeñ elektroniki
morskiej i l¹dowej oraz systemów i urz¹dzeñ dla s³u¿b komunalnych i
administracyjnych. Przedstawicielstwo handlowe i serwisowe producentów ww.
systemów i urz¹dzeñ. Opracowanie i wykonawanie i wykonawstwo
fotoluminescencyjnych systemów oznakowañ bezpieczeñstwa dla obiektów
l¹dowych i morskich.

Actual result:
--------------
echo "<td>".$zakres."</td>";
----------------------------
Dostawy, monta¿, uruchamianie i serwis systemów i urz¹dzeñ elektroniki
morskiej i l¹dowej oraz systemów i urz¹dzeñ dla s³u¿b komunalnych i
administracyjnych. Przedstawicielstwo handlowe i serwisowe producentów ww.
systemów i urz¹dzeñ. Opracowanie i wykonawanie i wykonawstwo
fotoluminescencyjnych systemów oznakowañ bezpieczeñstwa dla obiektów
l¹dowya8µiKdowych i morskich.
                                   -----------------

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

Reply via email to