projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* ditch some inline functions and replace them with a macro
[m6w6/ext-http]
/
php_http.h
diff --git
a/php_http.h
b/php_http.h
index b7274e9dad14596b167ac9b9edd55ae35dc06afa..55b59891ab71063256637cd1633b1dfa31a4110b 100644
(file)
--- a/
php_http.h
+++ b/
php_http.h
@@
-34,9
+34,7
@@
extern zend_module_entry http_module_entry;
# define HTTP_G(v) (http_globals.v)
#endif
# define HTTP_G(v) (http_globals.v)
#endif
-#ifndef ZEND_ENGINE_2
-# include "php_http_build_query.h"
-#else
+#ifdef ZEND_ENGINE_2
typedef struct {
zend_object zo;
typedef struct {
zend_object zo;
@@
-170,7
+168,9
@@
PHP_FUNCTION(http_post_array);
#endif
PHP_FUNCTION(http_auth_basic);
PHP_FUNCTION(http_auth_basic_cb);
#endif
PHP_FUNCTION(http_auth_basic);
PHP_FUNCTION(http_auth_basic_cb);
-
+#ifndef ZEND_ENGINE_2
+PHP_FUNCTION(http_build_query);
+#endif
PHP_FUNCTION(ob_httpetaghandler);
PHP_MINIT_FUNCTION(http);
PHP_FUNCTION(ob_httpetaghandler);
PHP_MINIT_FUNCTION(http);