#38231 [NEW]: mysqli_stmt_bind_param incorrect values
From: anton at ht-systems dot ru
Operating system: Linux
PHP version: 5.1.4
PHP Bug Type: MySQLi related
Bug description: mysqli_stmt_bind_param incorrect values
Description:
------------
web server placed on 32bit linux server with php 5.1.4 and mysql 4.1.18
client.
If i using database on 32bit linux server all work correctly, but if using
64bit lunix server after execute statement in database placed incorrect
values.
in database i see:
instead of 19 I see 196864
instead of "RRRRRRRRR" I see
"RRRRRRRRRюЂdef??юЂюb7_optЂµa
«*?µa «*ђµa «*?µa "
Reproduce code:
---------------
$mys = new mysqli($mysql_['host'], $mysql_['username'],
$mysql_['password'],
$mysql_['database']);
$qu_insert = "INSERT INTO assort (ind, articul) VALUES (?, ?)";
$stmt = $mys->prepare($qu_insert);
$ind = 19;
$articul = "RRRRRRRRR";
$stmt->bind_param("is", $ind, $articul);
$stmt->execute();
$stmt->close();
--
Edit bug report at http://bugs.php.net/?id=38231&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38231&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38231&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38231&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38231&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38231&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38231&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38231&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38231&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38231&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38231&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38231&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38231&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38231&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38231&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38231&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38231&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38231&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38231&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38231&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38231&r=mysqlcfg
Thread (13 messages)
- anton at ht-systems dot ru
- tony2001@php.net#38231 [Opn->Fbk]: mysqli_stmt_bind_param incorrect values
- anton at ht-systems dot ru#38231 [Fbk->Opn]: mysqli_stmt_bind_param incorrect values
- tony2001@php.net#38231 [Opn->Fbk]: mysqli_stmt_bind_param incorrect values
- anton at ht-systems dot ru#38231 [Fbk->Opn]: mysqli_stmt_bind_param incorrect values
- tony2001@php.net#38231 [Opn->Fbk]: mysqli_stmt_bind_param incorrect values
- anton at ht-systems dot ru#38231 [Fbk->Opn]: mysqli_stmt_bind_param incorrect values
- judas dot iscariote at gmail dot com#38231 [Com]: mysqli_stmt_bind_param incorrect values
- tony2001@php.net#38231 [Opn->Asn]: mysqli_stmt_bind_param incorrect values
- tony2001@php.net#38231 [Asn->Bgs]: mysqli_stmt_bind_param incorrect values
- anton at ht-systems dot ru#38231 [Bgs]: mysqli_stmt_bind_param incorrect values
- anton at ht-systems dot ru#38231 [Bgs->Opn]: mysqli_stmt_bind_param incorrect values
- tony2001@php.net#38231 [Opn->Bgs]: mysqli_stmt_bind_param incorrect values