summaryrefslogtreecommitdiff
path: root/ext/pfpro/php_pfpro.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-10-10 02:23:24 +0000
committerfoobar <sniper@php.net>2002-10-10 02:23:24 +0000
commit9029b356b2e095a2f421a84817649d98eb30b80f (patch)
tree7b99a2539a16d1bab0db50524426d2d73553e78e /ext/pfpro/php_pfpro.h
parentbb607d2d62f85bc0187889dfa6eb3cf29a2a3917 (diff)
downloadphp-git-9029b356b2e095a2f421a84817649d98eb30b80f.tar.gz
- Cleaned up some code and used the proper macros for ZTS stuff.
- Fixed a memleak. - Fixed a bug in pfpro_process() when response contains only 2 entries. (random garbage added in the end of the value + key sometimes wrong) # Sorry for including the ws fixes..I got carried away when fixing that bug
Diffstat (limited to 'ext/pfpro/php_pfpro.h')
-rw-r--r--ext/pfpro/php_pfpro.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/pfpro/php_pfpro.h b/ext/pfpro/php_pfpro.h
index 7b93f1f843..bc67d6ac4b 100644
--- a/ext/pfpro/php_pfpro.h
+++ b/ext/pfpro/php_pfpro.h
@@ -51,8 +51,7 @@ PHP_FUNCTION(pfpro_cleanup); /* Shut down cleanly */
PHP_FUNCTION(pfpro_process_raw); /* Raw transaction processing */
PHP_FUNCTION(pfpro_process); /* Transaction processing */
-typedef struct {
- int le_pfpro;
+ZEND_BEGIN_MODULE_GLOBALS(pfpro)
int initialized;
char *defaulthost;
int defaultport;
@@ -61,10 +60,10 @@ typedef struct {
int proxyport;
char *proxylogon;
char *proxypassword;
-} php_pfpro_globals;
+ZEND_END_MODULE_GLOBALS(pfpro)
#ifdef ZTS
-#define PFPROG(v) TSRMG(pfpro_globals_id, php_pfpro_globals *, v)
+#define PFPROG(v) TSRMG(pfpro_globals_id, zend_pfpro_globals *, v)
#else
#define PFPROG(v) (pfpro_globals.v)
#endif