#ifdef ZEND_ENGINE_2
+#include "zend_interfaces.h"
#include "ext/standard/url.h"
#include "php_http_api.h"
#include "php_http_request_object.h"
#ifndef WONKY
-# include "zend_interfaces.h"
# ifdef HAVE_SPL
/* SPL doesn't install its headers */
extern PHPAPI zend_class_entry *spl_ce_Countable;
HTTP_ARG_VAL(params, 0)
HTTP_END_ARGS;
+#ifndef WONKY
HTTP_BEGIN_ARGS(getInstance, 0, 0)
HTTP_ARG_VAL(global, 0)
HTTP_END_ARGS;
+#endif
HTTP_EMPTY_ARGS(toArray, 0);
HTTP_EMPTY_ARGS(toString, 0);
HTTP_QUERYSTRING_ME(get, ZEND_ACC_PUBLIC)
HTTP_QUERYSTRING_ME(set, ZEND_ACC_PUBLIC)
+#ifndef WONKY
HTTP_QUERYSTRING_ME(getInstance, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+#endif
HTTP_QUERYSTRING_GME(getBool, ZEND_ACC_PUBLIC)
HTTP_QUERYSTRING_GME(getInt, ZEND_ACC_PUBLIC)
}
}
+#ifndef WONKY
#define http_querystring_instantiate(g) _http_querystring_instantiate((g) TSRMLS_CC)
static inline zval *_http_querystring_instantiate(zend_bool global TSRMLS_DC)
{
return zobj;
}
+#endif
#define http_querystring_get(o, t, n, l, def, del, r) _http_querystring_get((o), (t), (n), (l), (def), (del), (r) TSRMLS_CC)
static inline void _http_querystring_get(zval *this_ptr, int type, char *name, uint name_len, zval *defval, zend_bool del, zval *return_value TSRMLS_DC)
}
/* }}} */
+#ifndef WONKY
/* {{{ proto HttpQueryString HttpQueryString::getInstance([bool global = true])
*
* Get a single instance (differentiates between the global setting).
SET_EH_NORMAL();
}
/* }}} */
+#endif
/* {{{ Getters by type */
#define HTTP_QUERYSTRING_GETTER(method, TYPE) \
PHP_METHOD(HttpQueryString, toArray);
PHP_METHOD(HttpQueryString, get);
PHP_METHOD(HttpQueryString, set);
+#ifndef WONKY
PHP_METHOD(HttpQueryString, getInstance);
+#endif
PHP_METHOD(HttpQueryString, getBool);
PHP_METHOD(HttpQueryString, getInt);
PHP_METHOD(HttpQueryString, getFloat);