- don't free the http message in http_message_tostruct_recursive() but where it was allocated
- use the "standard" way in RETVAL_OBJVAL()
HttpResponse class is infunctional with current ZendEngine2,
a fix is pending.
+
+http_chunked_decode() still depends on CRLF.
+
# include "php_http_exception_object.h"
#endif
+#include "missing.h"
#include "phpstr/phpstr.h"
#ifdef HTTP_HAVE_CURL
if (msg = http_message_parse(message, message_len)) {
object_init(return_value);
http_message_tostruct_recursive(msg, return_value);
+ http_message_free(&msg);
} else {
RETURN_NULL();
}
} else {
add_assoc_null(&strct, "parentMessage");
}
- http_message_dtor(msg);
- efree(msg);
}
PHP_HTTP_API STATUS _http_message_send(http_message *message TSRMLS_DC)
IF_RETVAL_USED {
char ver[4] = {0};
- double version;
getObject(http_message_object, obj);
sprintf(ver, "%1.1lf", obj->message->http.version);
PHP_HTTP_API void _http_info_dtor(http_info *info);
#define http_info_parse(p, i) _http_info_parse_ex((p), (i), 1 TSRMLS_CC)
#define http_info_parse_ex(p, i, s) _http_info_parse_ex((p), (i), (s) TSRMLS_CC)
-PHP_HTTP_API STATUS _http__infoparse_ex(const char *pre_header, http_info *info , zend_bool silent TSRMLS_DC);
+PHP_HTTP_API STATUS _http_info_parse_ex(const char *pre_header, http_info *info , zend_bool silent TSRMLS_DC);
#endif
return_value->is_ref = 1; \
return_value->type = IS_OBJECT; \
return_value->value.obj = (ov); \
- zend_objects_store_add_ref(return_value TSRMLS_CC)
+ if (Z_OBJ_HT_P(return_value)) { \
+ Z_OBJ_HT_P(return_value)->add_ref(return_value TSRMLS_CC); \
+ }
#define RETURN_OBJVAL(ov) \
RETVAL_OBJVAL(ov); \
return