- typo
[m6w6/ext-http] / http_message_object.c
index e934f8bd6a1792de423e1ae4fcfb925450ef5b26..c61999164749954a50e77ea1e71d2e7d95abb31f 100644 (file)
 #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
@@ -283,11 +282,11 @@ static void _http_message_object_write_prop(zval *object, zval *member, zval *va
                        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;