]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #27058 (crash in sybase_connect() with 2 arguments).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 01:43:55 +0000 (01:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jan 2004 01:43:55 +0000 (01:43 +0000)
ext/sybase/php_sybase_db.c

index 362a9921c9b6da93b335703ce875096159608b5c..9c0e57446f20d6dd06298bb87f35571830f067ac 100644 (file)
@@ -330,7 +330,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
                case 2: {
                                zval **yyhost, **yyuser;
                                
-                               if (zend_get_parameters_ex(ht, 2, &yyhost, &yyuser) == FAILURE) {
+                               if (zend_get_parameters_ex(2, &yyhost, &yyuser) == FAILURE) {
                                        RETURN_FALSE;
                                }
                                convert_to_string_ex(yyhost);