upgrade test suite to 5.3
[m6w6/ext-http] / tests / persistent_handles_001.phpt
index a2711a890f5d388d959c5984cf650abae4f160f5..05d63b53639dc8d716dba50ffa1259a9e5b3b044 100644 (file)
@@ -4,6 +4,7 @@ persistent handles
 <?php
 include 'skip.inc';
 skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
+skipif(!function_exists('zend_thread_id'), "need ZTS build");
 ?>
 --INI--
 http.persistent.handles.limit=-1
@@ -16,7 +17,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"]);
                }
        }
 }
@@ -37,7 +38,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)