X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_requestpool_object.c;h=30bfbdea405a0e8dafd3417f8ecc6893099ddf49;hb=13dc652c45a4a0b4dc219e46065bb3310229cedc;hp=60c07486f52bf30adbba6e26e07749983a3b0adf;hpb=01ed83fb41d0421368dddd8ace671f4b5bf9dd8d;p=m6w6%2Fext-http diff --git a/http_requestpool_object.c b/http_requestpool_object.c index 60c0748..30bfbde 100644 --- a/http_requestpool_object.c +++ b/http_requestpool_object.c @@ -6,16 +6,12 @@ | 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 | +--------------------------------------------------------------------+ */ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #define HTTP_WANT_CURL #include "php_http.h" @@ -430,7 +426,7 @@ PHP_METHOD(HttpRequestPool, current) current && obj->iterator.pos != pos++; current = zend_llist_get_next_ex(&obj->pool.handles, &lpos)); if (current) { - RETURN_OBJECT(*current); + RETURN_OBJECT(*current, 1); } } RETURN_NULL();