projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
gitignore: *.loT
[m6w6/ext-http]
/
src
/
php_http_api.h
diff --git
a/src/php_http_api.h
b/src/php_http_api.h
index 7fe3d1050e57f8e50255a4e8856c3d4f20649600..bca57f17141f6cf073fef9ee7e5acf1a21e83c69 100644
(file)
--- a/
src/php_http_api.h
+++ b/
src/php_http_api.h
@@
-13,6
+13,14
@@
#ifndef PHP_HTTP_API_H
#define PHP_HTTP_API_H
#ifndef PHP_HTTP_API_H
#define PHP_HTTP_API_H
+#ifdef __COVERITY_GCC_VERSION_AT_LEAST
+# define _Float128 float
+# define _Float64 float
+# define _Float32 float
+# define _Float64x float
+# define _Float32x float
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@
-33,37
+41,37
@@
#include "zend_exceptions.h"
#include "zend_exceptions.h"
-#if
def
PHP_WIN32
+#if PHP_WIN32
# define PHP_HTTP_API __declspec(dllexport)
# define PHP_HTTP_API __declspec(dllexport)
-#elif
defined(__GNUC__) &&
__GNUC__ >= 4
+#elif __GNUC__ >= 4
# define PHP_HTTP_API extern __attribute__ ((visibility("default")))
#else
# define PHP_HTTP_API extern
#endif
# define PHP_HTTP_API extern __attribute__ ((visibility("default")))
#else
# define PHP_HTTP_API extern
#endif
-#if (
defined(HAVE_ICONV) || defined(PHP_HTTP_HAVE_EXT_ICONV)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_ICONV)
)
-# define PHP_HTTP_HAVE_ICONV
+#if (
HAVE_ICONV || PHP_HTTP_HAVE_EXT_ICONV) && (PHP_HTTP_SHARED_DEPS || !COMPILE_DL_ICONV
)
+# define PHP_HTTP_HAVE_ICONV
1
#endif
#endif
-#if (
defined(HAVE_HASH_EXT) || defined(PHP_HTTP_HAVE_EXT_HASH)) && (PHP_HTTP_SHARED_DEPS || !defined(COMPILE_DL_HASH)) && defined(PHP_HTTP_HAVE_PHP_HASH_
H)
-# define PHP_HTTP_HAVE_HASH
+#if (
HAVE_HASH_EXT || PHP_HTTP_HAVE_EXT_HASH) && (PHP_HTTP_SHARED_DEPS || !COMPILE_DL_HAS
H)
+# define PHP_HTTP_HAVE_HASH
1
#endif
#include <stddef.h>
#endif
#include <stddef.h>
-#if
def
PHP_WIN32
+#if PHP_WIN32
# define CURL_STATICLIB
# include <winsock2.h>
#else
# define CURL_STATICLIB
# include <winsock2.h>
#else
-# if
def
HAVE_NETDB_H
+# if HAVE_NETDB_H
# include <netdb.h>
# endif
# include <netdb.h>
# endif
-# if
def
HAVE_UNISTD_H
+# if HAVE_UNISTD_H
# include <unistd.h>
# endif
#endif
# include <unistd.h>
# endif
#endif
-#if
defined(HAVE_WCHAR_H) && defined(HAVE_WCTYPE_H) && defined(HAVE_ISWALNUM) && (defined(HAVE_MBRTOWC) || defined(HAVE_MBTOWC)
)
+#if
HAVE_WCHAR_H && HAVE_WCTYPE_H && HAVE_ISWALNUM && (HAVE_MBRTOWC || HAVE_MBTOWC
)
# define PHP_HTTP_HAVE_WCHAR 1
#endif
# define PHP_HTTP_HAVE_WCHAR 1
#endif
@@
-80,6
+88,8
@@
#include "php_http.h"
#include "php_http_cookie.h"
#include "php_http_encoding.h"
#include "php_http.h"
#include "php_http_cookie.h"
#include "php_http_encoding.h"
+#include "php_http_encoding_zlib.h"
+#include "php_http_encoding_brotli.h"
#include "php_http_info.h"
#include "php_http_message.h"
#include "php_http_env.h"
#include "php_http_info.h"
#include "php_http_message.h"
#include "php_http_env.h"
@@
-108,18
+118,18
@@
ZEND_BEGIN_MODULE_GLOBALS(php_http)
struct php_http_env_globals env;
ZEND_BEGIN_MODULE_GLOBALS(php_http)
struct php_http_env_globals env;
-#if
def
PHP_HTTP_HAVE_CLIENT
+#if PHP_HTTP_HAVE_CLIENT
struct {
struct {
-#
ifdef PHP_HTTP_HAVE_
CURL
+#
if PHP_HTTP_HAVE_LIB
CURL
struct php_http_client_curl_globals curl;
struct php_http_client_curl_globals curl;
-#endif
+#
endif
} client;
#endif
ZEND_END_MODULE_GLOBALS(php_http)
ZEND_EXTERN_MODULE_GLOBALS(php_http);
} client;
#endif
ZEND_END_MODULE_GLOBALS(php_http)
ZEND_EXTERN_MODULE_GLOBALS(php_http);
-#if
def
ZTS
+#if ZTS
# include "TSRM/TSRM.h"
# define PHP_HTTP_G ((zend_php_http_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(php_http_globals_id)])
# undef TSRMLS_FETCH_FROM_CTX
# include "TSRM/TSRM.h"
# define PHP_HTTP_G ((zend_php_http_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(php_http_globals_id)])
# undef TSRMLS_FETCH_FROM_CTX