projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- ditch some warnings
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index 3ec05777fc273bbdacb68533fa97545a2403547c..9156ccc393187ce2a6fa5912059f75133efc6b83 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-108,7
+108,7
@@
PHP_FUNCTION(http_build_uri)
#define HTTP_DO_NEGOTIATE(type, supported, rs_array) \
{ \
HashTable *result; \
#define HTTP_DO_NEGOTIATE(type, supported, rs_array) \
{ \
HashTable *result; \
- if (
result = http_negotiate_ ##type(supported
)) { \
+ if (
(result = http_negotiate_ ##type(supported)
)) { \
char *key; \
uint key_len; \
ulong idx; \
char *key; \
uint key_len; \
ulong idx; \
@@
-447,7
+447,7
@@
PHP_FUNCTION(http_cache_last_modified)
/* 0 or omitted */
if (!last_modified) {
/* does the client have? (att: caching "forever") */
/* 0 or omitted */
if (!last_modified) {
/* does the client have? (att: caching "forever") */
- if (
zlm = http_get_server_var("HTTP_IF_MODIFIED_SINCE"
)) {
+ if (
(zlm = http_get_server_var("HTTP_IF_MODIFIED_SINCE")
)) {
last_modified = send_modified = http_parse_date(Z_STRVAL_P(zlm));
/* send current time */
} else {
last_modified = send_modified = http_parse_date(Z_STRVAL_P(zlm));
/* send current time */
} else {
@@
-817,7
+817,7
@@
PHP_FUNCTION(http_parse_message)
RETURN_NULL();
}
RETURN_NULL();
}
- if (
msg = http_message_parse(message, message_len
)) {
+ if (
(msg = http_message_parse(message, message_len)
)) {
object_init(return_value);
http_message_tostruct_recursive(msg, return_value);
http_message_free(&msg);
object_init(return_value);
http_message_tostruct_recursive(msg, return_value);
http_message_free(&msg);
@@
-1269,7
+1269,7
@@
PHP_FUNCTION(http_request_method_register)
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len)) {
RETURN_FALSE;
}
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &method, &method_len)) {
RETURN_FALSE;
}
- if (
existing = http_request_method_exists(1, 0, method
)) {
+ if (
(existing = http_request_method_exists(1, 0, method)
)) {
RETURN_LONG((long) existing);
}
RETURN_LONG((long) existing);
}