- zend_update_property(php_http_request_class_entry, getThis(), ZEND_STRL("history"), new_hist TSRMLS_CC);
- zval_ptr_dtor(&new_hist);
- }
-*/
-// if ((msg = obj->request->_current.request)) {
-// /* update request message */
-// zval *message;
-//
-// MAKE_STD_ZVAL(message);
-// ZVAL_OBJVAL(message, php_http_request_object_message(getThis(), msg TSRMLS_CC), 1);
-// zend_update_property(php_http_request_class_entry, getThis(), ZEND_STRL("requestMessage"), message TSRMLS_CC);
-// }
-// fprintf(stderr, "RESPONSE MESSAGE: %p\n", obj->request->parser.msg);
- if ((msg = obj->request->message)) {
- /* update properties with response info */
- zval *message;
+ /* update response info */
+ if (PHP_HTTP_MESSAGE_TYPE(RESPONSE, msg)) {
+ zval *message;