projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
gitignore
[m6w6/ext-pq]
/
php_pq.h
diff --git
a/php_pq.h
b/php_pq.h
index 3b26130e390318d8bc5424a9da34935f5966a52c..a422b6a31d526b75c537ee2f9c388e6e7234391e 100644
(file)
--- a/
php_pq.h
+++ b/
php_pq.h
@@
-14,7
+14,7
@@
#ifndef PHP_PQ_H
#define PHP_PQ_H
#ifndef PHP_PQ_H
#define PHP_PQ_H
-#define PHP_PQ_VERSION "
0.6.0RC2
"
+#define PHP_PQ_VERSION "
2.1.9dev
"
#ifdef PHP_WIN32
# define PHP_PQ_API __declspec(dllexport)
#ifdef PHP_WIN32
# define PHP_PQ_API __declspec(dllexport)
@@
-28,14
+28,20
@@
extern int pq_module_number;
extern zend_module_entry pq_module_entry;
#define phpext_pq_ptr &pq_module_entry
extern zend_module_entry pq_module_entry;
#define phpext_pq_ptr &pq_module_entry
+ZEND_BEGIN_MODULE_GLOBALS(php_pq)
+ struct {
+ /* for ext-raphf */
+ zend_string *name;
+ } connection;
+ZEND_END_MODULE_GLOBALS(php_pq)
+
+ZEND_EXTERN_MODULE_GLOBALS(php_pq);
#ifdef ZTS
#ifdef ZTS
-# include "TSRM.h"
-# define TSRMLS_DF(d) TSRMLS_D = (d)->ts
-# define TSRMLS_CF(d) (d)->ts = TSRMLS_C
+# include "TSRM/TSRM.h"
+# define PHP_PQ_G ((zend_php_pq_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(php_pq_globals_id)])
#else
#else
-# define TSRMLS_DF(d)
-# define TSRMLS_CF(d)
+# define PHP_PQ_G (&php_pq_globals)
#endif
#endif /* PHP_PQ_H */
#endif
#endif /* PHP_PQ_H */