#include "php_http.h"
#include "php_http_api.h"
+#ifdef ZEND_ENGINE_2
+#include "ext/standard/php_http.h"
+#endif
+
#ifdef HTTP_HAVE_CURL
#ifdef PHP_WIN32
#endif
PHP_FE(http_auth_basic, NULL)
PHP_FE(http_auth_basic_cb, NULL)
+#ifndef ZEND_ENGINE_2
+ PHP_FE(http_build_query, NULL)
+#endif
{NULL, NULL, NULL}
};
/* }}} */
#include "SAPI.h"
-#if (PHP_MAJOR_VERSION >= 5)
+#ifdef ZEND_ENGINE_2
#include "ext/standard/php_http.h"
#else
-#include "php_http_build_query.h"
-#include "http_build_query.c"
+#include "php_http_build_query.c"
#endif
#include "php_http.h"
#define HTTP_G(v) (http_globals.v)
#endif
+#ifndef ZEND_ENGINE_2
+#include "php_http_build_query.h"
+#endif
+
PHP_FUNCTION(http_date);
PHP_FUNCTION(http_absolute_uri);
PHP_FUNCTION(http_negotiate_language);
#define PHP_HTTP_API
#endif
+#ifndef ZEND_ENGINE_2
+#include "php_http_build_query.h"
+#endif
+
/* make functions that return SUCCESS|FAILURE more obvious */
typedef int STATUS;