From: Sterling Hughes Date: Sat, 22 Jul 2000 17:47:30 +0000 (+0000) Subject: fix bug 5322. X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d69d04cf753ba14f8a8553cb898b3fd3e201cf91;p=php fix bug 5322. --- diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c index 0228b7eb0c..d2bdc8a1af 100644 --- a/ext/msql/php_msql.c +++ b/ext/msql/php_msql.c @@ -315,7 +315,7 @@ static void php_msql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) ptr = zend_list_find(link,&type); /* check if the link is still there */ if (ptr && (type==msql_globals.le_link || type==msql_globals.le_plink)) { return_value->value.lval = msql_globals.default_link = link; - return_value->type = IS_LONG; + return_value->type = IS_RESOURCE; efree(hashed_details); return; } else {