projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix compiler warnings (unused vars & missing includes)
[m6w6/ext-http]
/
http_methods.c
diff --git
a/http_methods.c
b/http_methods.c
index 4d7518a5ff574c3db22ca5bfb7a5ad6999a264ac..322836e53685c5fd8334cca47d47df8ce3bc491d 100644
(file)
--- a/
http_methods.c
+++ b/
http_methods.c
@@
-40,6
+40,8
@@
#ifdef ZEND_ENGINE_2
#ifdef ZEND_ENGINE_2
+#include "missing.h"
+
ZEND_EXTERN_MODULE_GLOBALS(http)
/* {{{ HttpResponse */
ZEND_EXTERN_MODULE_GLOBALS(http)
/* {{{ HttpResponse */
@@
-629,7
+631,6
@@
PHP_METHOD(HttpMessage, fromString)
char *string = NULL;
int length = 0;
http_message *msg = NULL;
char *string = NULL;
int length = 0;
http_message *msg = NULL;
- http_message_object obj;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &string, &length)) {
RETURN_NULL();
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &string, &length)) {
RETURN_NULL();
@@
-889,7
+890,6
@@
PHP_METHOD(HttpMessage, getRequestUri)
NO_ARGS;
IF_RETVAL_USED {
NO_ARGS;
IF_RETVAL_USED {
- zval *uri;
getObject(http_message_object, obj);
if (!HTTP_MSG_TYPE(REQUEST, obj->message)) {
getObject(http_message_object, obj);
if (!HTTP_MSG_TYPE(REQUEST, obj->message)) {
@@
-972,7
+972,7
@@
PHP_METHOD(HttpMessage, getHttpVersion)
PHP_METHOD(HttpMessage, setHttpVersion)
{
char v[4];
PHP_METHOD(HttpMessage, setHttpVersion)
{
char v[4];
- zval *zv
, *version
;
+ zval *zv;
getObject(http_message_object, obj);
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &zv)) {
getObject(http_message_object, obj);
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &zv)) {
@@
-2073,7
+2073,7
@@
PHP_METHOD(HttpRequest, send)
php_stream_statbuf ssb;
zval *file = GET_PROP(obj, putFile);
php_stream_statbuf ssb;
zval *file = GET_PROP(obj, putFile);
- if ( (stream = php_stream_open_wrapper(Z_STRVAL_P(file),
,
"rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL)) &&
+ if ( (stream = php_stream_open_wrapper(Z_STRVAL_P(file), "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL)) &&
!php_stream_stat(stream, &ssb)) {
body.type = HTTP_REQUEST_BODY_UPLOADFILE;
body.data = stream;
!php_stream_stat(stream, &ssb)) {
body.type = HTTP_REQUEST_BODY_UPLOADFILE;
body.data = stream;