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 logic error in HttpMessage::setResponseStatus
[m6w6/ext-http]
/
http_message_object.c
diff --git
a/http_message_object.c
b/http_message_object.c
index a5b2ca82616d38f78bf94e3dba62a6c65df6bc4d..e7a564f2ba58349720d4a8a2336fb40e3e39091d 100644
(file)
--- a/
http_message_object.c
+++ b/
http_message_object.c
@@
-1000,7
+1000,7
@@
PHP_METHOD(HttpMessage, setResponseStatus)
HTTP_CHECK_MESSAGE_TYPE_RESPONSE(obj->message, RETURN_FALSE);
HTTP_CHECK_MESSAGE_TYPE_RESPONSE(obj->message, RETURN_FALSE);
- if (SUCCESS
=
= zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &status, &status_len)) {
+ if (SUCCESS
!
= zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &status, &status_len)) {
RETURN_FALSE;
}
STR_SET(obj->message->http.info.response.status, estrndup(status, status_len));
RETURN_FALSE;
}
STR_SET(obj->message->http.info.response.status, estrndup(status, status_len));