#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
switch (msg->type)
{
case HTTP_MSG_REQUEST:
- msg->info.request.http_version = (float) Z_DVAL_P(value);
+ msg->info.request.http_version = Z_DVAL_P(value);
break;
case HTTP_MSG_RESPONSE:
- msg->info.response.http_version = (float) Z_DVAL_P(value);
+ msg->info.response.http_version = Z_DVAL_P(value);
break;
}
break;