#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#ifdef HTTP_HAVE_CURL
-# ifdef PHP_WIN32
-# include <winsock2.h>
-# endif
-# include <curl/curl.h>
-#endif
-
-#include <ctype.h>
-
#include "php.h"
-#include "php_ini.h"
-#include "ext/standard/info.h"
#include "SAPI.h"
+#include "php_ini.h"
+#include "ext/standard/info.h"
#include "php_http.h"
#include "php_http_std_defs.h"
#include "phpstr/phpstr.h"
+#ifdef HTTP_HAVE_CURL
+# ifdef PHP_WIN32
+# include <winsock2.h>
+# endif
+# include <curl/curl.h>
+#endif
+
+#include <ctype.h>
+
ZEND_DECLARE_MODULE_GLOBALS(http);
HTTP_DECLARE_ARG_PASS_INFO();
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#include <ctype.h>
-
#include "php.h"
-#include "ext/standard/url.h"
#include "SAPI.h"
+#include "ext/standard/url.h"
#include "php_http.h"
#include "php_http_std_defs.h"
# include "php_http_exception_object.h"
#endif
+#include <ctype.h>
+
ZEND_EXTERN_MODULE_GLOBALS(http);
/* char *pretty_key(char *, size_t, zend_bool, zebd_bool) */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
-#include "ext/standard/base64.h"
#include "SAPI.h"
+#include "ext/standard/base64.h"
#include "php_http.h"
#include "php_http_api.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#include "SAPI.h"
#include "php_streams.h"
#include "php_output.h"
#include "ext/standard/md5.h"
-#include "SAPI.h"
-
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#include <ctype.h>
-
#include "php.h"
+
#include "php_http.h"
#include "php_http_std_defs.h"
+#include <ctype.h>
+
static int check_day(char *day, size_t len);
static int check_month(char *month);
static int check_tzone(char *tzone);
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
-#include "php_http.h"
-#include "php_http_std_defs.h"
-
#ifdef ZEND_ENGINE_2
-#include "php_http_exception_object.h"
#include "zend_exceptions.h"
+#include "php_http.h"
+#include "php_http_std_defs.h"
+#include "php_http_exception_object.h"
+
zend_class_entry *http_exception_object_ce;
zend_function_entry http_exception_object_fe[] = {{NULL, NULL, NULL}};
void _http_exception_object_init(INIT_FUNC_ARGS)
{
HTTP_REGISTER_CLASS(HttpException, http_exception_object, zend_exception_get_default(), 0);
-
+
HTTP_LONG_CONSTANT("HTTP_E_UNKNOWN", HTTP_E_UNKOWN);
HTTP_LONG_CONSTANT("HTTP_E_PARSE", HTTP_E_PARSE);
HTTP_LONG_CONSTANT("HTTP_E_HEADER", HTTP_E_HEADER);
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#include "SAPI.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/session/php_session.h"
#include "ext/standard/php_string.h"
-#include "SAPI.h"
-
-#include "phpstr/phpstr.h"
-
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
#include "php_http_send_api.h"
#include "php_http_url_api.h"
+#include "phpstr/phpstr.h"
+
ZEND_EXTERN_MODULE_GLOBALS(http)
/* {{{ proto string http_date([int timestamp])
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#include <ctype.h>
-
#include "php.h"
+
#include "ext/standard/php_string.h"
#include "ext/standard/url.h"
#include "php_http_api.h"
#include "php_http_headers_api.h"
+#include <ctype.h>
+
/* {{{ static int http_sort_q(const void *, const void *) */
static int http_sort_q(const void *a, const void *b TSRMLS_DC)
{
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+#ifdef ZEND_ENGINE_2
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_message_object.h"
#include "phpstr/phpstr.h"
-#ifdef ZEND_ENGINE_2
-
#define http_message_object_declare_default_properties() _http_message_object_declare_default_properties(TSRMLS_C)
static inline void _http_message_object_declare_default_properties(TSRMLS_D);
#define http_message_object_read_prop _http_message_object_read_prop
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#ifdef ZEND_ENGINE_2
+
#include "php_streams.h"
#include "php_http.h"
#include "php_http_requestpool_object.h"
#include "php_http_exception_object.h"
-#ifdef ZEND_ENGINE_2
-
#include "missing.h"
-ZEND_EXTERN_MODULE_GLOBALS(http)
+ZEND_EXTERN_MODULE_GLOBALS(http);
/* {{{ HttpResponse */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#include "php.h"
+
+#include "php_http.h"
+#include "php_http_std_defs.h"
+#include "php_http_api.h"
+#include "php_http_request_api.h"
+#include "php_http_url_api.h"
+
+#include "phpstr/phpstr.h"
#ifdef PHP_WIN32
# include <winsock2.h>
#include <curl/curl.h>
-#include "phpstr/phpstr.h"
-
-#include "php.h"
-#include "php_http.h"
-#include "php_http_std_defs.h"
-#include "php_http_api.h"
-#include "php_http_request_api.h"
-#include "php_http_url_api.h"
+ZEND_EXTERN_MODULE_GLOBALS(http);
#ifndef HTTP_CURL_USE_ZEND_MM
# define HTTP_CURL_USE_ZEND_MM 0
#endif
-ZEND_EXTERN_MODULE_GLOBALS(http)
-
#if LIBCURL_VERSION_NUM < 0x070c00
# define curl_easy_strerror(code) HTTP_G(request).error
#endif
} else {
HTTP_CURL_OPT(COOKIEFILE, NULL);
}
-
+
/* cookiestore, read initial cookies from that file and store cookies back into that file */
if ((zoption = http_curl_getopt(options, "cookiestore", IS_STRING)) && Z_STRLEN_P(zoption)) {
HTTP_CURL_OPT(COOKIEFILE, http_request_data_copy(COPY_STRING, Z_STRVAL_P(zoption)));
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#ifdef HTTP_HAVE_CURL
-# ifdef PHP_WIN32
-# include <winsock2.h>
-# endif
-# include <curl/curl.h>
-#endif
-
#include "php.h"
+#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL)
+
#include "php_http_std_defs.h"
#include "php_http_request_object.h"
#include "php_http_request_api.h"
#include "php_http_message_api.h"
#include "php_http_message_object.h"
-#ifdef ZEND_ENGINE_2
-#ifdef HTTP_HAVE_CURL
+#ifdef PHP_WIN32
+# include <winsock2.h>
+#endif
+#include <curl/curl.h>
#define http_request_object_declare_default_properties() _http_request_object_declare_default_properties(TSRMLS_C)
static inline void _http_request_object_declare_default_properties(TSRMLS_D);
return FAILURE;
}
-#endif /* HTTP_HAVE_CURL */
-#endif /* ZEND_ENGINE_2 */
+#endif /* ZEND_ENGINE_2 && HTTP_HAVE_CURL */
/*
* Local variables:
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL)
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
#include "php_http_request_object.h"
#include "php_http_requestpool_object.h"
-#ifdef ZEND_ENGINE_2
-
#ifndef HTTP_DEBUG_REQPOOLS
# define HTTP_DEBUG_REQPOOLS 0
#endif
}
/* }}} */
-#endif /* ZEND_ENGINE_2 */
+#endif /* ZEND_ENGINE_2 && HTTP_HAVE_CURL */
/*
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#ifdef HTTP_HAVE_CURL
-# ifdef PHP_WIN32
-# include <winsock2.h>
-# endif
-# include <curl/curl.h>
-#endif
-
#include "php.h"
+#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_CURL)
+
#include "php_http_std_defs.h"
#include "php_http_requestpool_object.h"
#include "php_http_request_pool_api.h"
-#ifdef ZEND_ENGINE_2
-#ifdef HTTP_HAVE_CURL
+#ifdef PHP_WIN32
+# include <winsock2.h>
+#endif
+#include <curl/curl.h>
HTTP_DECLARE_ARG_PASS_INFO();
efree(o);
}
-#endif /* HTTP_HAVE_CURL */
-#endif /* ZEND_ENGINE_2 */
+#endif /* ZEND_ENGINE_2 && HTTP_HAVE_CURL */
/*
* Local variables:
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+#ifdef ZEND_ENGINE_2
+
#include "php_http_std_defs.h"
#include "php_http_response_object.h"
-#ifdef ZEND_ENGINE_2
-
#include "missing.h"
#define http_response_object_declare_default_properties() _http_response_object_declare_default_properties(TSRMLS_C)
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#include "SAPI.h"
#include "php_streams.h"
#include "ext/standard/php_lcg.h"
-#include "SAPI.h"
#include "php_http.h"
#include "php_http_std_defs.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#include "SAPI.h"
#include "zend_ini.h"
#include "php_output.h"
#include "ext/standard/url.h"
-#include "SAPI.h"
-
-#include "phpstr/phpstr.h"
-
#include "php_http.h"
#include "php_http_api.h"
#include "php_http_url_api.h"
#include "php_http_std_defs.h"
+#include "phpstr/phpstr.h"
+
#ifdef PHP_WIN32
# include <winsock2.h>
#elif defined(HAVE_NETDB_H)
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
+#ifdef ZEND_ENGINE_2
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_util_object.h"
-#ifdef ZEND_ENGINE_2
-
HTTP_DECLARE_ARG_PASS_INFO();
zend_class_entry *http_util_object_ce;