Skip to content

Commit a7e3a95

Browse files
author
Sascha Schumann
committed
fix for php#1748
1 parent dbe9e99 commit a7e3a95

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

ext/sybase/sybase-ct.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
/* $Id$ */
2121

2222

23-
#ifndef MSVC5
24-
#include "php_config.h"
25-
#endif
2623
#include "php.h"
2724
#include "php3_sybase-ct.h"
2825
#include "ext/standard/php3_standard.h"
@@ -605,11 +602,7 @@ static void php3_sybct_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
605602
static int php3_sybct_get_default_link(INTERNAL_FUNCTION_PARAMETERS)
606603
{
607604
if (php3_sybct_module.default_link==-1) { /* no link opened yet, implicitly open one */
608-
HashTable dummy;
609-
610-
_php3_hash_init(&dummy,0,NULL,NULL,0);
611-
php3_sybct_do_connect(&dummy,return_value,list,plist,0);
612-
_php3_hash_destroy(&dummy);
605+
php3_sybct_do_connect(0,return_value,list,plist,0);
613606
}
614607
return php3_sybct_module.default_link;
615608
}
@@ -1315,7 +1308,7 @@ static PHP_FUNCTION(sybct_fetch_hash)
13151308
tmp->value.str.val = _php3_addslashes(tmp->value.str.val,tmp->value.str.len,&tmp->value.str.len,1);
13161309
}
13171310
_php3_hash_index_update(return_value->value.ht, i, (void *) &tmp, sizeof(pval *), NULL);
1318-
_php3_hash_update(return_value->value.ht, result->fields[i].name, strlen(result->fields[i].name)+1, (void *) &tmp, sizeof(pval *) NULL);
1311+
_php3_hash_update(return_value->value.ht, result->fields[i].name, strlen(result->fields[i].name)+1, (void *) &tmp, sizeof(pval *), NULL);
13191312
}
13201313
result->cur_row++;
13211314
}

0 commit comments

Comments
 (0)