diff options
author | Danny Heijl <danny@php.net> | 1999-07-22 07:31:27 +0000 |
---|---|---|
committer | Danny Heijl <danny@php.net> | 1999-07-22 07:31:27 +0000 |
commit | dc7cffcd4306966cfbf65b82666d7754bc5b7324 (patch) | |
tree | fa560d32b00ca0a1e9c5c0f54a6d993808fd44c3 | |
parent | d9f52fe0a7c48f4536268a6b4374d5debdd73a3d (diff) | |
download | php-git-dc7cffcd4306966cfbf65b82666d7754bc5b7324.tar.gz |
Blobs don't work, hash problems.
-rw-r--r-- | MODULES_STATUS | 2 | ||||
-rw-r--r-- | ext/informix/ifx.ec | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/MODULES_STATUS b/MODULES_STATUS index 0a2fceb39d..39a32eb6d0 100644 --- a/MODULES_STATUS +++ b/MODULES_STATUS @@ -14,4 +14,4 @@ ldap Working oci8 Working (but no blob-support yet) oracle Working iptc Working -informix Working (php_ini stuff needs rewriting) +informix Working (except blobs, and php_ini stuff needs rewriting) diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index f8fa0ba43c..8f9f5bb918 100644 --- a/ext/informix/ifx.ec +++ b/ext/informix/ifx.ec @@ -1096,7 +1096,13 @@ EXEC SQL END DECLARE SECTION; } if(ARG_COUNT(ht)==3) { - getParameters(ht, ARG_COUNT(ht), &dummy,&dummy,&pblobidarr); + if (getParameters(ht, 3, &dummy, &dummy, &pblobidarr) == FAILURE) { + php3_error(E_WARNING,"Can't get blob array param"); + EXEC SQL DEALLOCATE DESCRIPTOR :descrpid; + EXEC SQL free :statemid; + efree(Ifx_Result); + RETURN_FALSE; + } if (pblobidarr->type != IS_ARRAY) { php3_error(E_WARNING,"blob-parameter not an array"); EXEC SQL DEALLOCATE DESCRIPTOR :descrpid; @@ -1493,7 +1499,13 @@ EXEC SQL END DECLARE SECTION; } if(ARG_COUNT(ht)==3) { Ifx_Result->paramquery=1; - getParameters(ht, ARG_COUNT(ht), &dummy,&dummy,&pblobidarr); + if (getParameters(ht, 3, &dummy, &dummy,&pblobidarr) == FAILURE) { + php3_error(E_WARNING,"Can't get blob array param"); + EXEC SQL DEALLOCATE DESCRIPTOR :descrpid; + EXEC SQL free :statemid; + efree(Ifx_Result); + RETURN_FALSE; + } if(pblobidarr->type != IS_ARRAY) { php3_error(E_WARNING,"blob-parameter not an array"); EXEC SQL DEALLOCATE DESCRIPTOR :descrpid; |