]> granicus.if.org Git - php/commitdiff
fix ora_fetch_into to allow_call_time_pass_reference = Off; (#7838)
authorThies C. Arntzen <thies@php.net>
Thu, 16 Nov 2000 12:37:35 +0000 (12:37 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 16 Nov 2000 12:37:35 +0000 (12:37 +0000)
ext/oracle/oracle.c

index d1618e313855ebb4b8363b2628e03288daebaa8a..a36071b3c65c775b805393b9b5c564645594d10e 100644 (file)
@@ -115,7 +115,7 @@ function_entry oracle_functions[] = {
        PHP_FE(ora_errorcode,                                                   NULL)
        PHP_FE(ora_exec,                                                                NULL)
        PHP_FE(ora_fetch,                                                               NULL)
-       PHP_FE(ora_fetch_into,                                                  NULL)
+       PHP_FE(ora_fetch_into,                                                  second_arg_force_ref)
        PHP_FE(ora_columntype,                                                  NULL)
        PHP_FE(ora_columnname,                                                  NULL)
        PHP_FE(ora_columnsize,                                                  NULL)
@@ -1077,11 +1077,6 @@ PHP_FUNCTION(ora_fetch_into)
                break;
        }
        
-       if (! ParameterPassedByReference(ht, 2)){
-               php_error(E_WARNING, "Array not passed by reference in call to ora_fetch_into()");
-               RETURN_FALSE;
-       }
-       
        /* Find the cursor */
        if ((cursor = ora_get_cursor(&EG(regular_list), curs)) == NULL) {
                RETURN_FALSE;