|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-10-06 06:51 UTC] abhargav at in dot ibm dot com
  [2009-03-06 01:10 UTC] abhargav at in dot ibm dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
Description: ------------ source code : <?php require_once('./config.php'); $table = 'texttest'; $test_num = '26'; $test_name = 'content~~~~~~~~'; COMM_utf8_to_big5($test_num); COMM_utf8_to_big5($test_name); try{ //?????ɘA?? $ls_sql = "insert into " . $table . " values( :test_num, :test_name )"; $sth = $dbh->prepare($ls_sql); $sth->bindParam(1, $test_num); $sth->bindParam(2, $test_name,PDO::PARAM_STR); $rtn = $sth->execute(array(':test_num' => $test_num, ':test_name' => $test_name)); if ($rtn) echo "{success:true, kind:'add'}"; else echo "{success:false, data:'".json_encode($sth->errorInfo())."'}";} catch (Exception $e){ $err = $e->getMessage(); echo "{success:false, data:'$err'}"; } ?> Reproduce code: --------------- {ODBC Driver][Informix]Illegal attempt to convert Text\/Byte Expected result: ---------------- {success:false, data:'["HY000",-608,"[Informix][Informix ODBC Driver][Informix]Illegal attempt to convert Text\/Byte blob type. (SQLExecute[-608] at ..\\pecl\\pdo_informix\\informix_statement.c:733)"]'} Actual result: -------------- {success:false, data:'["HY000",-608,"[Informix][Informix ODBC Driver][Informix]Illegal attempt to convert Text\/Byte blob type. (SQLExecute[-608] at ..\\pecl\\pdo_informix\\informix_statement.c:733)"]'}