|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-01-05 15:03 UTC] laruence@php.net
[2016-01-05 15:03 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-01-20 17:06 UTC] ira dot tonert at e-vendo dot de
[2016-07-20 11:34 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 23:00:02 2025 UTC |
Description: ------------ According to the documentation the function ibase_blob_add expects 2 parameters. The first parameter is a resource (the blob handle), the second parameter is a string (the data to be added). But in PHP7 I get a warning message: "ibase_blob_add() expects parameter 2 to be resource, string given ...". The data will not be added to the blob, the function doesn't work. I haven't found any information for a change in the function-call. So I think I can use the function in the usual way. But it doesn't work. The data content is smaller than 64K. Test script: --------------- $linkID = ibase_pconnect(.....); if ($linkID) { $transID = ibase_trans(IBASE_WRITE|IBASE_COMMITTED|IBASE_REC_VERSION|IBASE_WAIT, $linkID); if ($transID) { $blob_id = ibase_blob_create($transID); if ($blob_id) { $iadd = ibase_blob_add($blob_id, $text); $blob_id_str = ibase_blob_close($blob_id); if ($blob_id_str) { $queryID = ibase_query($transID, 'update tablename set blobfieldname = ? where ...mywherecondition...', $blob_id_str); } ibase_commit($transID); } ibase_close($linkID); } Expected result: ---------------- I wish that the function ibase_blob_add again works.