release 1.7.5
[m6w6/ext-http] / tests / persistent_handles_002.phpt
index 6efa9cbfaecc71d0c0fe8cb129e929bf6d519bb6..5b5d28cf60af23c4f0e40525077284a7b9d760f3 100644 (file)
@@ -3,6 +3,7 @@ persistent handles
 --SKIPIF--
 <?php
 include 'skip.inc';
+checkmin("5.2.5");
 skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
 skipif(function_exists('zend_thread_id'), "need non-ZTS build");
 ?>
@@ -17,7 +18,7 @@ echo "No free handles!\n";
 foreach (http_persistent_handles_count() as $provider => $idents) {
        foreach ((array)$idents as $ident => $counts) {
                if (!empty($counts["free"])) {
-                       printf("%s, %s, %s\n", $provider, $ident, $counts["free"]);
+                       printf("%a, %a, %a\n", $provider, $ident, $counts["free"]);
                }
        }
 }
@@ -25,7 +26,8 @@ foreach (http_persistent_handles_count() as $provider => $idents) {
 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[]);
@@ -38,7 +40,7 @@ print_r(http_persistent_handles_count());
 echo "Done\n";
 ?>
 --EXPECTF--
-%sTEST
+%aTEST
 No free handles!
 One free request handle within GLOBAL: int(1)
 Reusing request handle: bool(true)