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

index 40e8089563ce7557d2204154d50f4a5aba4f74e9..ff9af1d58e5f90b0609d1c5b90396d1c474d296b 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);