projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
f1aea1c
)
fix logic error in HttpMessage::setResponseStatus
author
Michael Wallner
<mike@php.net>
Thu, 24 Mar 2011 09:26:11 +0000
(09:26 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 24 Mar 2011 09:26:11 +0000
(09:26 +0000)
http_message_object.c
patch
|
blob
|
history
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);
- 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));