[PHP-CVS] cvs: php-src(PHP_4_3) /ext/mcve mcve.c php_mcve.h

2004-06-16 Thread Brad House
bradmsswWed Jun 16 23:16:54 2004 EDT

  Modified files:  (Branch: PHP_4_3)
/php-src/ext/mcve   mcve.c php_mcve.h 
  Log:
  merge name change from mcve - monetra
  add compatability layer for v3.2 functionality, so existing scripts
  will work without any migration needed.
  This patch has been sitting in PHP 5 for some time, and seems to
  be working quite well. A quick backport of that patch to php4.
  http://cvs.php.net/diff.php/php-src/ext/mcve/mcve.c?r1=1.14.2.8r2=1.14.2.9ty=u
Index: php-src/ext/mcve/mcve.c
diff -u php-src/ext/mcve/mcve.c:1.14.2.8 php-src/ext/mcve/mcve.c:1.14.2.9
--- php-src/ext/mcve/mcve.c:1.14.2.8Thu Aug 28 20:53:15 2003
+++ php-src/ext/mcve/mcve.c Wed Jun 16 23:16:54 2004
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: mcve.c,v 1.14.2.8 2003/08/29 00:53:15 sniper Exp $ */
+/* $Id: mcve.c,v 1.14.2.9 2004/06/17 03:16:54 bradmssw Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include config.h
@@ -48,6 +48,83 @@
 /* {{{ extension definition structures */
 static unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
 function_entry mcve_functions[] = {
+   PHP_FE(m_initengine,NULL)
+   PHP_FE(m_initconn,  NULL)
+   PHP_FE(m_deleteresponse,NULL)
+   PHP_FE(m_destroyconn,   NULL)
+   PHP_FE(m_setdropfile,   NULL)
+   PHP_FE(m_setip, NULL)
+   PHP_FE(m_setssl,NULL)
+   PHP_FE(m_setssl_files,  NULL)
+   PHP_FE(m_settimeout,NULL)
+   PHP_FE(m_setblocking,   NULL)
+   PHP_FE(m_verifyconnection,  NULL)
+   PHP_FE(m_verifysslcert, NULL)
+   PHP_FE(m_maxconntimeout,NULL)
+   PHP_FE(m_connectionerror,   NULL)
+   PHP_FE(m_deletetrans,   NULL)
+   PHP_FE(m_connect,   NULL)
+   PHP_FE(m_transnew,  NULL)
+   PHP_FE(m_transparam,NULL)
+   PHP_FE(m_transsend, NULL)
+   PHP_FE(m_ping,  NULL)
+   PHP_FE(m_responseparam, NULL)
+   PHP_FE(m_returnstatus,  NULL)
+   PHP_FE(m_returncode,NULL)
+   PHP_FE(m_transactionssent,  NULL)
+   PHP_FE(m_transactionitem,   NULL)
+   PHP_FE(m_transactionbatch,  NULL)
+   PHP_FE(m_transactionid, NULL)
+   PHP_FE(m_transactionauth,   NULL)
+   PHP_FE(m_transactiontext,   NULL)
+   PHP_FE(m_transactionavs,NULL)
+   PHP_FE(m_transactioncv, NULL)
+   PHP_FE(m_getuserparam,  NULL)
+   PHP_FE(m_monitor,   NULL)
+   PHP_FE(m_transinqueue,  NULL)
+   PHP_FE(m_checkstatus,   NULL)
+   PHP_FE(m_completeauthorizations,second_arg_force_ref)
+   PHP_FE(m_sale,  NULL)
+   PHP_FE(m_preauth,   NULL)
+   PHP_FE(m_void,  NULL)
+   PHP_FE(m_preauthcompletion, NULL)
+   PHP_FE(m_force, NULL)
+   PHP_FE(m_override,  NULL)
+   PHP_FE(m_return,NULL)
+   PHP_FE(m_iscommadelimited,  NULL)
+   PHP_FE(m_parsecommadelimited,   NULL)
+   PHP_FE(m_getcommadelimited, NULL)
+   PHP_FE(m_getcell,   NULL)
+   PHP_FE(m_getcellbynum,  NULL)
+   PHP_FE(m_numcolumns,NULL)
+   PHP_FE(m_numrows,   NULL)
+   PHP_FE(m_getheader, NULL)
+   PHP_FE(m_destroyengine, NULL)
+   PHP_FE(m_settle,NULL)
+   PHP_FE(m_gut,   NULL)
+   PHP_FE(m_gl,NULL)
+   PHP_FE(m_gft,   NULL)
+   PHP_FE(m_qc,NULL)
+   PHP_FE(m_ub,NULL)
+   PHP_FE(m_chkpwd,NULL)
+   PHP_FE(m_bt,NULL)
+   PHP_FE(m_uwait, NULL)
+   PHP_FE(m_text_code, NULL)
+   PHP_FE(m_text_avs,  NULL)
+   PHP_FE(m_text_cv,   NULL)
+   PHP_FE(m_chngpwd,   NULL)
+   PHP_FE(m_listusers, NULL)
+   PHP_FE(m_adduser,   NULL)
+   PHP_FE(m_enableuser,NULL)
+   PHP_FE(m_disableuser,   NULL)
+   PHP_FE(m_getuserarg,NULL)
+  

Re: [PHP-CVS] cvs: php-src(PHP_4_3) /ext/mcve mcve.c php_mcve.h

2003-07-08 Thread Derick Rethans
On Tue, 8 Jul 2003, Brad House wrote:

 bradmssw  Mon Jul  7 23:16:38 2003 EDT
 
   Modified files:  (Branch: PHP_4_3)
 /php-src/ext/mcve mcve.c php_mcve.h 
   Log:
   update mcve ext from HEAD. Sync with libmcve-3.2 functionality

Our policy is to put no new functionality in stable branches, can you 
explain why this is necessary?

regards,
Derick

-- 
Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails.
-
 Derick Rethans http://derickrethans.nl/ 
 International PHP Magazine  http://php-mag.net/
-


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-CVS] cvs: php-src(PHP_4_3) /ext/mcve mcve.c php_mcve.h

2003-07-08 Thread Brad House
The functionality is not experimental. It has been in our private
stable branch for quite some time, and we had just not merged
it into the tree.  We've actually had quite a few requests
from people to merge it into the next official release so they
could update php via the FreeBSD ports system or whatnot
without having to apply our patches, and compile by hand.
You should notice that very little had actually changed.
It simply added a lot of Constants, and added one function
mcve_setssl_files.
I see no reason not to update the branch, especially since
the changes are really non-intrusive.
I can back it out if necessary, as I don't want to
adversely affect any policy you may have.
-Brad

Derick Rethans wrote:
On Tue, 8 Jul 2003, Brad House wrote:


bradmssw		Mon Jul  7 23:16:38 2003 EDT

 Modified files:  (Branch: PHP_4_3)
   /php-src/ext/mcve	mcve.c php_mcve.h 
 Log:
 update mcve ext from HEAD. Sync with libmcve-3.2 functionality


Our policy is to put no new functionality in stable branches, can you 
explain why this is necessary?

regards,
Derick


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-CVS] cvs: php-src(PHP_4_3) /ext/mcve mcve.c php_mcve.h

2003-07-07 Thread Brad House
bradmsswMon Jul  7 23:16:38 2003 EDT

  Modified files:  (Branch: PHP_4_3)
/php-src/ext/mcve   mcve.c php_mcve.h 
  Log:
  update mcve ext from HEAD. Sync with libmcve-3.2 functionality
  Index: php-src/ext/mcve/mcve.c
diff -u php-src/ext/mcve/mcve.c:1.14.2.2 php-src/ext/mcve/mcve.c:1.14.2.3
--- php-src/ext/mcve/mcve.c:1.14.2.2Fri Jun  6 02:17:08 2003
+++ php-src/ext/mcve/mcve.c Mon Jul  7 23:16:38 2003
@@ -4,10 +4,10 @@
+--+
| Copyright (c) 1997-2003 The PHP Group|
+--+
-   | This source file is subject to version 2.02 of the PHP license,  |
+   | This source file is subject to version 3.0 of the PHP license,   |
| that is bundled with this package in the file LICENSE, and is|
-   | available at through the world-wide-web at   |
-   | http://www.php.net/license/2_02.txt. |
+   | available through the world-wide-web at the following url:   |
+   | http://www.php.net/license/3_0.txt.  |
| If you did not receive a copy of the PHP license and are unable to   |
| obtain it through the world-wide-web, please send a note to  |
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
@@ -17,6 +17,8 @@
+--+
 */
 
+/* $Id: mcve.c,v 1.14.2.3 2003/07/08 03:16:38 bradmssw Exp $ */
+
 /* standard php include(s) */
 #include php.h
 #include ext/standard/head.h
@@ -47,6 +49,7 @@
PHP_FE(mcve_setdropfile,NULL)
PHP_FE(mcve_setip,  NULL)
PHP_FE(mcve_setssl, NULL)
+   PHP_FE(mcve_setssl_files,   NULL)
PHP_FE(mcve_settimeout, NULL)
PHP_FE(mcve_setblocking,NULL)
PHP_FE(mcve_verifyconnection,   NULL)
@@ -188,6 +191,33 @@
REGISTER_LONG_CONSTANT(MC_ADMIN, MC_ADMIN, MCVE_CONST);
REGISTER_LONG_CONSTANT(MC_AUDITTYPE, MC_AUDITTYPE, MCVE_CONST);
REGISTER_LONG_CONSTANT(MC_CUSTOM, MC_CUSTOM, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_EXAMOUNT, MC_EXAMOUNT, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_EXCHARGES, MC_EXCHARGES, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_RATE, MC_RATE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_RENTERNAME, MC_RENTERNAME, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_RETURNCITY, MC_RETURNCITY, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_RETURNSTATE, MC_RETURNSTATE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_RETURNLOCATION, MC_RETURNLOCATION, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_PRIORITY, MC_PRIORITY, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_INQUIRY, MC_INQUIRY, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_CARDTYPES, MC_CARDTYPES, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_SUB, MC_SUB, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_MARKER, MC_MARKER, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_DEVICETYPE, MC_DEVICETYPE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_ERRORCODE, MC_ERRORCODE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_NEWBATCH, MC_NEWBATCH, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_CURR, MC_CURR, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_DESCMERCH, MC_DESCMERCH, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_DESCLOC, MC_DESCLOC, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_ORIGTYPE, MC_ORIGTYPE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_PIN, MC_PIN, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_VOIDORIGTYPE, MC_VOIDORIGTYPE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_TIMESTAMP, MC_TIMESTAMP, MCVE_CONST);
+
+   /* Args for priorities */
+   REGISTER_LONG_CONSTANT(MC_PRIO_HIGH, MC_PRIO_HIGH, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_PRIO_NORMAL, MC_PRIO_NORMAL, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_PRIO_LOW, MC_PRIO_LOW, MCVE_CONST);
 
/* Args for adding a user */
REGISTER_LONG_CONSTANT(MC_USER_PROC, MC_USER_PROC, MCVE_CONST);
@@ -208,16 +238,87 @@
REGISTER_LONG_CONSTANT(MC_USER_MERCHLOC, MC_USER_MERCHLOC, MCVE_CONST);
REGISTER_LONG_CONSTANT(MC_USER_STATECODE, MC_USER_STATECODE, MCVE_CONST);
REGISTER_LONG_CONSTANT(MC_USER_PHONE, MC_USER_PHONE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_SUB, MC_USER_SUB, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_CARDTYPES, MC_USER_CARDTYPES, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_MODE, MC_USER_MODE, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_VNUMBER, MC_USER_VNUMBER, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_ROUTINGID, MC_USER_ROUTINGID, MCVE_CONST);
+   REGISTER_LONG_CONSTANT(MC_USER_PPROPERTY, MC_USER_PPROPERTY, MCVE_CONST);
+