--SKIPIF--
<?php
include 'skip.inc';
+checkmin(5);
skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
skipif(function_exists('zend_thread_id'), "need non-ZTS build");
?>
http_get("http://www.google.com/", null, $info[]);
echo "One free request handle within GLOBAL: ";
-var_dump(http_persistent_handles_count()->http_request["GLOBAL"]["free"]);
+$h = http_persistent_handles_count();
+var_dump($h->http_request["GLOBAL"]["free"]);
echo "Reusing request handle: ";
http_get("http://www.google.com/", null, $info[]);