|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-13 06:30 UTC] rahulpriyadarshi@php.net
-Assigned To:
+Assigned To: rahulpriyadarshi
[2014-02-13 06:30 UTC] rahulpriyadarshi@php.net
[2014-02-13 18:53 UTC] josemalonsom at yahoo dot es
-Status: Assigned
+Status: Closed
[2014-02-13 18:53 UTC] josemalonsom at yahoo dot es
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
Description: ------------ No data is inserted when bindParam is used with PDO::PARAM_LOB in BLOB/CLOB types. It works if the BYTE/TEXT types are used instead. PHP Version: 5.8.8 IBM/Informix-Client SDK Version: 4.10.UC2DE PDO Informix Version: 1.3.1 S.O.: reproduced in Ubuntu 12.04 and RedHat EL5 Test script: --------------- // $con has a valid PDO Informix connection $con->exec('CREATE TABLE test_lob (test_blob BLOB, test_clob CLOB)'); $stmt = $con->prepare('INSERT INTO test_lob (test_blob, test_clob) VALUES (?, ?)'); file_put_contents('/tmp/test_file_1.tmp', 'test content 1'); file_put_contents('/tmp/test_file_2.tmp', 'test content 2'); $fp1 = fopen('/tmp/test_file_1.tmp', 'rb'); $fp2 = fopen('/tmp/test_file_2.tmp', 'rb'); $stmt->bindParam(1, $fp1, PDO::PARAM_LOB); $stmt->bindParam(2, $fp2, PDO::PARAM_LOB); $stmt->execute(); Expected result: ---------------- A row has to be inserted with values in the two fields. Actual result: -------------- After the execution no row has been inserted. No error is produced.