CVS update: php3/functions
| From: | thies | Date: | Tue, 09 Feb 1999 12:06:23 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4002@lists.php.net to get a copy of this message | ||
Date: Tuesday February 9, 1999 @ 7:06
Author: thies
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv9417
Modified Files:
oci8.c
Log Message:
php needs a trailing \0 for the hashes
Index: php3/functions/oci8.c
diff -c php3/functions/oci8.c:1.30 php3/functions/oci8.c:1.31
*** php3/functions/oci8.c:1.30 Tue Feb 9 06:45:01 1999
--- php3/functions/oci8.c Tue Feb 9 07:06:22 1999
***************
*** 32,38 ****
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.30 1999/02/09 11:45:01 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
--- 32,38 ----
+----------------------------------------------------------------------+
*/
! /* $Id: oci8.c,v 1.31 1999/02/09 12:06:22 thies Exp $ */
#include "php.h"
#include "internal_functions.h"
***************
*** 1193,1198 ****
--- 1193,1200 ----
(ub2) 0,
(ub1) SQLCS_IMPLICIT);
+ oci8_debug("OCISaveLob: size=%d",loblen);
+
if (ociresult) {
oci8_error(connection->pError, "OCILobWrite", ociresult);
RETURN_FALSE;
***************
*** 1275,1280 ****
--- 1277,1284 ----
RETURN_FALSE;
}
+ oci8_debug("OCILoadLob: size=%d",loblen);
+
RETURN_STRINGL(buffer,loblen,0);
}
***************
*** 1629,1634 ****
--- 1633,1639 ----
ub4 nrows = 1;
int i;
int mode = OCI_NUM;
+ char namebuf[ 128 ];
OCI8_TLS_VARS;
if (getParameters(ht, 3, &stmt, &array, &fmode) == SUCCESS) {
***************
*** 1667,1674 ****
}
if (mode & OCI_ASSOC) {
element = oci8_make_pval(stmt->value.lval,column, "OCIFetchInto",list);
! _php3_hash_update(array->value.ht, column->name, column->name_len, (void *)element,
sizeof(pval), NULL);
}
}
RETVAL_LONG(statement->ncolumns);
--- 1672,1682 ----
}
if (mode & OCI_ASSOC) {
+ memcpy(namebuf,column->name, column->name_len);
+ namebuf[ column->name_len ] = 0;
+
element = oci8_make_pval(stmt->value.lval,column, "OCIFetchInto",list);
! _php3_hash_update(array->value.ht, namebuf, column->name_len+1, (void *)element,
sizeof(pval), NULL);
}
}
RETVAL_LONG(statement->ncolumns);
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net