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:
197d0cf
)
- check responseMessage to be an object
author
Michael Wallner
<mike@php.net>
Wed, 15 Jun 2005 13:44:12 +0000
(13:44 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 15 Jun 2005 13:44:12 +0000
(13:44 +0000)
http_methods.c
patch
|
blob
|
history
diff --git
a/http_methods.c
b/http_methods.c
index 94a47573f3e69c164cb2fd85077649727eb7c77e..efc1cf73469d7515f6e6a2d5273cff3f15791e44 100644
(file)
--- a/
http_methods.c
+++ b/
http_methods.c
@@
-2069,7
+2069,11
@@
PHP_METHOD(HttpRequest, getResponseMessage)
getObject(http_request_object, obj);
message = GET_PROP(obj, responseMessage);
- RETVAL_OBJECT(message);
+ if (Z_TYPE_P(message) == IS_OBJECT) {
+ RETVAL_OBJECT(message);
+ } else {
+ RETURN_NULL();
+ }
}
}
/* }}} */