From: Michael Wallner Date: Mon, 2 Jan 2006 15:36:58 +0000 (+0000) Subject: - happy new year X-Git-Tag: RELEASE_0_21_0~4 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=32e91737086db53bb1fd9ed9f79d693c43ec459f - happy new year - add HttpRequest::onFinish() callback method lookup - add test --- diff --git a/http.c b/http.c index 039f720..fefdab1 100644 --- a/http.c +++ b/http.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_api.c b/http_api.c index 1eed789..6046052 100644 --- a/http_api.c +++ b/http_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_cache_api.c b/http_cache_api.c index 98cd072..2685cc9 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_date_api.c b/http_date_api.c index 16b5661..31898de 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_deflatestream_object.c b/http_deflatestream_object.c index d5813f9..1e1f097 100644 --- a/http_deflatestream_object.c +++ b/http_deflatestream_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_encoding_api.c b/http_encoding_api.c index f4b5746..534b762 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_exception_object.c b/http_exception_object.c index 06b0c58..8e1ffee 100644 --- a/http_exception_object.c +++ b/http_exception_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_filter_api.c b/http_filter_api.c index a942c1f..f7e99ec 100644 --- a/http_filter_api.c +++ b/http_filter_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_functions.c b/http_functions.c index 6513149..642f335 100644 --- a/http_functions.c +++ b/http_functions.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_headers_api.c b/http_headers_api.c index 12be14f..0952ffb 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_inflatestream_object.c b/http_inflatestream_object.c index 39abcee..c107cd3 100644 --- a/http_inflatestream_object.c +++ b/http_inflatestream_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_info_api.c b/http_info_api.c index 0136a42..2cf34f0 100644 --- a/http_info_api.c +++ b/http_info_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_message_api.c b/http_message_api.c index 16a2c05..4be4c17 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_message_object.c b/http_message_object.c index a0077bd..b9fdc36 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_request_api.c b/http_request_api.c index 8dc72dd..1a8b143 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_request_body_api.c b/http_request_body_api.c index 401e0ac..e7fe1c8 100644 --- a/http_request_body_api.c +++ b/http_request_body_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_request_method_api.c b/http_request_method_api.c index c6c138e..f1bd651 100644 --- a/http_request_method_api.c +++ b/http_request_method_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_request_object.c b/http_request_object.c index 177d3b8..7eb00d4 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -606,7 +606,11 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this http_request_info(obj->request, Z_ARRVAL_P(info)); SET_PROP(responseInfo, info); zval_ptr_dtor(&info); - + + if (zend_hash_exists(&Z_OBJCE_P(getThis())->function_table, "onfinish", sizeof("onfinish"))) { + zend_call_method_with_0_params(&getThis(), Z_OBJCE_P(getThis()), NULL, "onfinish", NULL); + } + return SUCCESS; } } diff --git a/http_request_pool_api.c b/http_request_pool_api.c index 83c5c59..53ecb21 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_requestpool_object.c b/http_requestpool_object.c index 60c0748..004ab83 100644 --- a/http_requestpool_object.c +++ b/http_requestpool_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_response_object.c b/http_response_object.c index 4cbba72..87d3e63 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_send_api.c b/http_send_api.c index 103dc95..b7aafaa 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_url_api.c b/http_url_api.c index 7bacffc..517ee1a 100644 --- a/http_url_api.c +++ b/http_url_api.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/http_util_object.c b/http_util_object.c index fbc3160..7c2a107 100644 --- a/http_util_object.c +++ b/http_util_object.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/missing.c b/missing.c index f9f063a..1ca6cbb 100644 --- a/missing.c +++ b/missing.c @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/missing.h b/missing.h index 23f36fb..da5b314 100644 --- a/missing.h +++ b/missing.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http.h b/php_http.h index 58f191e..3def97f 100644 --- a/php_http.h +++ b/php_http.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_api.h b/php_http_api.h index 628837c..3d708d7 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_cache_api.h b/php_http_cache_api.h index ee9e8f8..7ca8998 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_date_api.h b/php_http_date_api.h index 563aab1..3356e38 100644 --- a/php_http_date_api.h +++ b/php_http_date_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_deflatestream_object.h b/php_http_deflatestream_object.h index cd5df97..13c3350 100644 --- a/php_http_deflatestream_object.h +++ b/php_http_deflatestream_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_encoding_api.h b/php_http_encoding_api.h index a50fc49..9cde6e7 100644 --- a/php_http_encoding_api.h +++ b/php_http_encoding_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_exception_object.h b/php_http_exception_object.h index 68c462f..241b96c 100644 --- a/php_http_exception_object.h +++ b/php_http_exception_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_filter_api.h b/php_http_filter_api.h index 726ac04..6bbb600 100644 --- a/php_http_filter_api.h +++ b/php_http_filter_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_headers_api.h b/php_http_headers_api.h index a35fe07..0251afd 100644 --- a/php_http_headers_api.h +++ b/php_http_headers_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_inflatestream_object.h b/php_http_inflatestream_object.h index 64c10e4..0853d04 100644 --- a/php_http_inflatestream_object.h +++ b/php_http_inflatestream_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_info_api.h b/php_http_info_api.h index d30cead..6d36a64 100644 --- a/php_http_info_api.h +++ b/php_http_info_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_message_api.h b/php_http_message_api.h index a8b7c21..37ccb2c 100644 --- a/php_http_message_api.h +++ b/php_http_message_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_message_object.h b/php_http_message_object.h index 8442f94..6bc06f2 100644 --- a/php_http_message_object.h +++ b/php_http_message_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_request_api.h b/php_http_request_api.h index 318b696..731cbf0 100644 --- a/php_http_request_api.h +++ b/php_http_request_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_request_body_api.h b/php_http_request_body_api.h index edff6e5..88d1d0f 100644 --- a/php_http_request_body_api.h +++ b/php_http_request_body_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_request_method_api.h b/php_http_request_method_api.h index 179e52e..4fcf2be 100644 --- a/php_http_request_method_api.h +++ b/php_http_request_method_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_request_object.h b/php_http_request_object.h index 3433d51..bbb4e96 100644 --- a/php_http_request_object.h +++ b/php_http_request_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_request_pool_api.h b/php_http_request_pool_api.h index 78dbdb2..986c9ed 100644 --- a/php_http_request_pool_api.h +++ b/php_http_request_pool_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_requestpool_object.h b/php_http_requestpool_object.h index c5af3be..f6f7736 100644 --- a/php_http_requestpool_object.h +++ b/php_http_requestpool_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_response_object.h b/php_http_response_object.h index 5fd739c..f5bff6b 100644 --- a/php_http_response_object.h +++ b/php_http_response_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_send_api.h b/php_http_send_api.h index 29370b8..9abf1a5 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_std_defs.h b/php_http_std_defs.h index 833bcdb..aa4f81e 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_url_api.h b/php_http_url_api.h index 72cb538..48b2765 100644 --- a/php_http_url_api.h +++ b/php_http_url_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/php_http_util_object.h b/php_http_util_object.h index 25263b8..7d6c15f 100644 --- a/php_http_util_object.h +++ b/php_http_util_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ diff --git a/tests/HttpRequest_009.phpt b/tests/HttpRequest_009.phpt new file mode 100644 index 0000000..ead16d8 --- /dev/null +++ b/tests/HttpRequest_009.phpt @@ -0,0 +1,48 @@ +--TEST-- +HttpRequest callbacks +--SKIPIF-- + +--FILE-- +getResponseCode()); + } +} + +$r = new _R('http://dev.iworks.at/.print_request.php', HTTP_METH_POST); +$r->addPostFile('upload', __FILE__, 'text/plain'); +$r->send(); + +echo "Done\n"; +?> +--EXPECTF-- +%sTEST +Array +( + [dltotal] => %f + [dlnow] => %f + [ultotal] => %f + [ulnow] => %f +) +%srray +( + [dltotal] => %f + [dlnow] => %f + [ultotal] => %f + [ulnow] => %f +) +int(200) +Done