summaryrefslogtreecommitdiff
path: root/ext/pfpro
diff options
context:
space:
mode:
authorJohn Donagher <jdonagher@php.net>2001-01-28 00:45:28 +0000
committerJohn Donagher <jdonagher@php.net>2001-01-28 00:45:28 +0000
commitf5a369232a7cc8067b653883b28926ecc597c4bf (patch)
tree70bd6e955695f9edf9965cc1268db26255012863 /ext/pfpro
parentc256b323a2faaef94a208834e77a7aa27deaa2bd (diff)
downloadphp-git-f5a369232a7cc8067b653883b28926ecc597c4bf.tar.gz
PR:
Clean up and add folding
Diffstat (limited to 'ext/pfpro')
-rw-r--r--ext/pfpro/pfpro.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/pfpro/pfpro.c b/ext/pfpro/pfpro.c
index 491e000baa..da8a215c27 100644
--- a/ext/pfpro/pfpro.c
+++ b/ext/pfpro/pfpro.c
@@ -19,6 +19,7 @@
/* $Id$ */
+/* {{{ includes */
#include "php.h"
#include "php_ini.h"
#include "php_pfpro.h"
@@ -28,15 +29,17 @@
#if HAVE_PFPRO
#include "ext/standard/php_string.h"
+/* }}} */
+/* {{{ zts */
#ifdef ZTS
int pfpro_globals_id;
#else
php_pfpro_globals pfpro_globals;
#endif
+/* }}} */
-/* Function table */
-
+/* {{{ Function table */
function_entry pfpro_functions[] = {
PHP_FE(pfpro_version, NULL)
PHP_FE(pfpro_init, NULL)
@@ -45,7 +48,9 @@ function_entry pfpro_functions[] = {
PHP_FE(pfpro_process, NULL)
{NULL, NULL, NULL}
};
+/* }}} */
+/* {{{ Zend module entry */
zend_module_entry pfpro_module_entry = {
"pfpro",
pfpro_functions,
@@ -56,12 +61,15 @@ zend_module_entry pfpro_module_entry = {
PHP_MINFO(pfpro),
STANDARD_MODULE_PROPERTIES
};
+/* }}} */
+/* {{{ dl() stuff */
#ifdef COMPILE_DL_PFPRO
ZEND_GET_MODULE(pfpro)
#endif
+/* }}} */
-
+/* {{{ initialization defaults */
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("pfpro.defaulthost", "test.signio.com", PHP_INI_ALL, OnUpdateString, defaulthost, php_pfpro_globals, pfpro_globals)
STD_PHP_INI_ENTRY("pfpro.defaultport", "443", PHP_INI_ALL, OnUpdateInt, defaultport, php_pfpro_globals, pfpro_globals)
@@ -104,8 +112,9 @@ PHP_RSHUTDOWN_FUNCTION(pfpro)
return SUCCESS;
}
+/* }}} */
-
+/* {{{ minfo registration */
PHP_MINFO_FUNCTION(pfpro)
{
php_info_print_table_start();
@@ -115,8 +124,7 @@ PHP_MINFO_FUNCTION(pfpro)
DISPLAY_INI_ENTRIES();
}
-
-
+/* }}} */
/* {{{ proto string pfpro_version()
Returns the version of the Payflow Pro library */
@@ -130,8 +138,6 @@ PHP_FUNCTION(pfpro_version)
}
/* }}} */
-
-
/* {{{ proto void pfpro_init()
Initialises the Payflow Pro library */
PHP_FUNCTION(pfpro_init)
@@ -150,8 +156,6 @@ PHP_FUNCTION(pfpro_init)
}
/* }}} */
-
-
/* {{{ proto void pfpro_cleanup()
Shuts down the Payflow Pro library */
PHP_FUNCTION(pfpro_cleanup)
@@ -170,8 +174,6 @@ PHP_FUNCTION(pfpro_cleanup)
}
/* }}} */
-
-
/* {{{ proto string pfpro_process_raw(string parmlist [, string hostaddress [, int port, [, int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, string proxyPassword]]]]]]])
Raw Payflow Pro transaction processing */
PHP_FUNCTION(pfpro_process_raw)
@@ -290,8 +292,6 @@ PHP_FUNCTION(pfpro_process_raw)
}
/* }}} */
-
-
/* {{{ proto array pfpro_process(array parmlist [, string hostaddress [, int port, [, int timeout [, string proxyAddress [, int proxyPort [, string proxyLogon [, string proxyPassword]]]]]]])
Payflow Pro transaction processing using arrays */
PHP_FUNCTION(pfpro_process)