]> granicus.if.org Git - php/commitdiff
fix bug 5322.
authorSterling Hughes <sterling@php.net>
Sat, 22 Jul 2000 17:47:30 +0000 (17:47 +0000)
committerSterling Hughes <sterling@php.net>
Sat, 22 Jul 2000 17:47:30 +0000 (17:47 +0000)
ext/msql/php_msql.c

index 0228b7eb0ca05ec4006ec4b5026d5c395dd1e898..d2bdc8a1afda084c73739b8e0607bdfdb57107d6 100644 (file)
@@ -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 {