CVS update: phpfi/src
| From: | ssb | Date: | Mon, 31 Aug 1998 22:48:51 +0000 |
| Subject: | CVS update: phpfi/src | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-698@lists.php.net to get a copy of this message | ||
Date: Monday August 31, 1998 @ 18:48
Author: ssb
Update of /repository/phpfi/src
In directory asf:/u2/tmp/cvs-serv9131
Modified Files:
oracle.c
Log Message:
Ora_Bind() in 2.0 was using malloc(). ouch.
Index: phpfi/src/oracle.c
diff -c phpfi/src/oracle.c:1.18 phpfi/src/oracle.c:1.19
*** phpfi/src/oracle.c:1.18 Fri Dec 19 07:23:04 1997
--- phpfi/src/oracle.c Mon Aug 31 18:48:49 1998
***************
*** 33,39 ****
\****************************************************************************/
/*
! * $Id: oracle.c,v 1.18 1997/12/19 12:23:04 dizzy Exp $
*
* Possible enhancements:
*
--- 33,39 ----
\****************************************************************************/
/*
! * $Id: oracle.c,v 1.19 1998/08/31 22:48:49 ssb Exp $
*
* Possible enhancements:
*
***************
*** 1456,1462 ****
oraBindVar* new_bind;
Cda_Def *cda = &cursor->cda;
! new_bind = malloc(sizeof(oraBindVar));
if (new_bind != NULL)
{
new_bind->next = cursor->ora_bind_top;
--- 1456,1462 ----
oraBindVar* new_bind;
Cda_Def *cda = &cursor->cda;
! new_bind = emalloc(0, sizeof(oraBindVar));
if (new_bind != NULL)
{
new_bind->next = cursor->ora_bind_top;
***************
*** 1465,1471 ****
new_bind->len = var_len+1;
new_bind->sql_name = strdup(sql_var_name);
new_bind->php_name = strdup(php_var_name);
! new_bind->space = malloc(var_len+1);
if (new_bind->space && new_bind->sql_name && new_bind->php_name)
{
cursor->ora_bind_top = new_bind;
--- 1465,1471 ----
new_bind->len = var_len+1;
new_bind->sql_name = strdup(sql_var_name);
new_bind->php_name = strdup(php_var_name);
! new_bind->space = emalloc(0, var_len+1);
if (new_bind->space && new_bind->sql_name && new_bind->php_name)
{
cursor->ora_bind_top = new_bind;
--
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