projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- split object code into separate files
[m6w6/ext-http]
/
http_methods.c
diff --git
a/http_methods.c
b/http_methods.c
index 8d119825be6c683fc901c44492cc455c6ae26aee..6812d7d795af9838a4ab7959f88bb93962df924d 100644
(file)
--- a/
http_methods.c
+++ b/
http_methods.c
@@
-30,6
+30,10
@@
#include "php_http_send_api.h"
#include "php_http_url_api.h"
#include "php_http_send_api.h"
#include "php_http_url_api.h"
+#include "php_http_message_object.h"
+#include "php_http_response_object.h"
+#include "php_http_request_object.h"
+
#ifdef ZEND_ENGINE_2
/* {{{ HttpResponse */
#ifdef ZEND_ENGINE_2
/* {{{ HttpResponse */
@@
-526,7
+530,7
@@
PHP_METHOD(HttpMessage, __construct)
int message_len;
getObject(http_message_object, obj);
http_message *msg = obj->message;
int message_len;
getObject(http_message_object, obj);
http_message *msg = obj->message;
-
+
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z/", &message)) {
return;
}
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z/", &message)) {
return;
}
@@
-541,9
+545,9
@@
PHP_METHOD(HttpMessage, __construct)
PHP_METHOD(HttpMessage, __destruct)
{
getObject(http_message_object, obj);
PHP_METHOD(HttpMessage, __destruct)
{
getObject(http_message_object, obj);
-
+
NO_ARGS;
NO_ARGS;
-
+
}
/* }}} */
}
/* }}} */