CVS update: php3/functions

From: Date: Tue, 16 Feb 1999 13:15:19 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4121@lists.php.net to get a copy of this message
Date: Tuesday February 16, 1999 @ 8:15 Author: thies Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv7044 Modified Files: oci8.c Log Message: added force_ref again (stupid change....) Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.49 php3/functions/oci8.c:1.50 *** php3/functions/oci8.c:1.49 Tue Feb 16 07:52:58 1999 --- php3/functions/oci8.c Tue Feb 16 08:15:19 1999 *************** *** 32,38 **** +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.49 1999/02/16 12:52:58 thies Exp $ */ #include "php.h" #include "internal_functions.h" --- 32,38 ---- +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.50 1999/02/16 13:15:19 thies Exp $ */ #include "php.h" #include "internal_functions.h" *************** *** 192,206 **** #define OCI_RETURN_NULLS 1<<2 #define OCI_RETURN_LOBS 1<<3 function_entry oci8_functions[] = { ! {"ocibindbyname", php3_oci8_bindbyname, NULL}, {"ocicolumnisnull", php3_oci8_columnisnull, NULL}, {"ocicolumnname", php3_oci8_columnname, NULL}, {"ocicolumnsize", php3_oci8_columnsize, NULL}, {"ocicolumntype", php3_oci8_columntype, NULL}, {"ociexecute", php3_oci8_execute, NULL}, {"ocifetch", php3_oci8_fetch, NULL}, ! {"ocifetchinto", php3_oci8_fetchinto, NULL}, {"ocifreestatement", php3_oci8_freestatement, NULL}, {"ociinternaldebug", php3_oci8_internaldebug, NULL}, {"ocinumcols", php3_oci8_numcols, NULL}, --- 192,208 ---- #define OCI_RETURN_NULLS 1<<2 #define OCI_RETURN_LOBS 1<<3 + static unsigned char third_arg_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; + function_entry oci8_functions[] = { ! {"ocibindbyname", php3_oci8_bindbyname, third_arg_force_ref}, {"ocicolumnisnull", php3_oci8_columnisnull, NULL}, {"ocicolumnname", php3_oci8_columnname, NULL}, {"ocicolumnsize", php3_oci8_columnsize, NULL}, {"ocicolumntype", php3_oci8_columntype, NULL}, {"ociexecute", php3_oci8_execute, NULL}, {"ocifetch", php3_oci8_fetch, NULL}, ! {"ocifetchinto", php3_oci8_fetchinto, second_arg_force_ref}, {"ocifreestatement", php3_oci8_freestatement, NULL}, {"ociinternaldebug", php3_oci8_internaldebug, NULL}, {"ocinumcols", php3_oci8_numcols, NULL}, *************** *** 1231,1241 **** WRONG_PARAM_COUNT; } - if (!ParameterPassedByReference(ht, 3)) { - php3_error(E_WARNING, "OCIBindByName: arg 3 must be passed by reference"); - RETURN_FALSE; - } - statement = oci8_get_stmt(stmt->value.lval, "OCIBindByName", list); if (statement == NULL) { RETURN_FALSE; --- 1233,1238 ---- *************** *** 1856,1867 **** } else if (getParameters(ht, 2, &stmt, &array) == FAILURE) { WRONG_PARAM_COUNT; } - - if (!ParameterPassedByReference(ht, 2)) { - php3_error(E_WARNING, "OCIFetchInto: arg 2 must be passed by reference"); - RETURN_FALSE; - } - convert_to_long(stmt); statement = oci8_get_stmt(stmt->value.lval, "OCIFetchInto", list); --- 1853,1858 ---- -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4121) next »