cvs: pecl /http http_message_object.c
| From: | Michael Wallner | Date: | Thu, 19 Jan 2006 18:47:27 +0000 |
| Subject: | cvs: pecl /http http_message_object.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-4995@lists.php.net to get a copy of this message | ||
mike Thu Jan 19 18:47:27 2006 UTC
Modified files:
/pecl/http http_message_object.c
Log:
- fix ce
- no add_ref in detach()
http://cvs.php.net/viewcvs.cgi/pecl/http/http_message_object.c?r1=1.71&r2=1.72&diff_format=u
Index: pecl/http/http_message_object.c
diff -u pecl/http/http_message_object.c:1.71 pecl/http/http_message_object.c:1.72
--- pecl/http/http_message_object.c:1.71 Thu Jan 19 18:44:05 2006
+++ pecl/http/http_message_object.c Thu Jan 19 18:47:27 2006
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_message_object.c,v 1.71 2006/01/19 18:44:05 mike Exp $ */
+/* $Id: http_message_object.c,v 1.72 2006/01/19 18:47:27 mike Exp $ */
#include "php_http.h"
@@ -600,7 +600,7 @@
if (class_name && *class_name) {
ce = zend_fetch_class(class_name, class_length, ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC);
- if (ce && !instanceof_function(ce, http_request_object_ce TSRMLS_CC)) {
+ if (ce && !instanceof_function(ce, http_message_object_ce TSRMLS_CC)) {
http_error_ex(HE_WARNING, HTTP_E_RUNTIME, "Class %s does not extend HttpMessage",
class_name);
ce = NULL;
}
@@ -1108,7 +1108,7 @@
zend_hash_copy(&msg->hdrs, &obj->message->hdrs, (copy_ctor_func_t) zval_add_ref,
NULL, sizeof(zval *));
phpstr_append(&msg->body, PHPSTR_VAL(obj->message), PHPSTR_LEN(obj->message));
- RETURN_OBJVAL(http_message_object_new_ex(Z_OBJCE_P(getThis()), msg, NULL));
+ ZVAL_OBJVAL(return_value, http_message_object_new_ex(Z_OBJCE_P(getThis()), msg, NULL));
}
/* }}} */