before_script:
- make -f travis/pecl/Makefile php
- - make -f travis/pecl/Makefile pharext/raphf-master pharext/propro-master
+ - make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
+ - make -f travis/pecl/Makefile pecl PECL=propro:propro:2.0.0
+ - make -f travis/pecl/Makefile ext PECL=http
script:
- - make -f travis/pecl/Makefile ext PECL=http
- make -f travis/pecl/Makefile test
after_script:
if ((sval = php_http_env_get_server_var(ZEND_STRL("REQUEST_URI"), 1))) {
message->http.info.request.url = php_http_url_parse(Z_STRVAL_P(sval), Z_STRLEN_P(sval), ~0);
}
+
php_http_env_get_request_headers(&message->hdrs);
break;
}
message->http.info.response.status = estrdup(php_http_env_get_response_status_for_code(message->http.info.response.code));
}
-
+
php_http_env_get_response_headers(&message->hdrs);
if (php_output_get_level()) {
if (php_output_get_status() & PHP_OUTPUT_SENT) {
php_error_docref(NULL, E_WARNING, "Could not fetch response body, output has already been sent at %s:%d", php_output_get_start_filename(), php_output_get_start_lineno());
+
goto error;
} else if (SUCCESS != php_output_get_contents(&tval)) {
php_error_docref(NULL, E_WARNING, "Could not fetch response body");
php_http_message_t *php_http_message_reverse(php_http_message_t *msg)
{
size_t i, c = php_http_message_count(msg);
-
+
if (c > 1) {
php_http_message_t *tmp = msg, **arr;
{
php_http_message_t *temp, *copy = NULL;
php_http_info_t info;
-
+
if (from) {
info.type = from->type;
info.http = from->http;
-
+
copy = temp = php_http_message_init(to, 0, php_http_message_body_copy(from->body, NULL));
php_http_message_set_info(temp, &info);
zend_hash_copy(&temp->hdrs, &from->hdrs, (copy_ctor_func_t) zval_add_ref);
-
+
if (parents) while (from->parent) {
info.type = from->parent->type;
info.http = from->parent->http;
-
+
temp->parent = php_http_message_init(NULL, 0, php_http_message_body_copy(from->parent->body, NULL));
php_http_message_set_info(temp->parent, &info);
array_copy(&from->parent->hdrs, &temp->parent->hdrs);
-
temp = temp->parent;
from = from->parent;
PHP_HTTP_MESSAGE_OBJECT_INIT(obj);
*is_temp = 0;
-
+
#define UPDATE_PROP(name_str, action_with_tmp) \
do { \
zend_property_info *pi; \