projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add test file to package.xml
[m6w6/ext-http]
/
tests
/
persistent_handles_001.phpt
diff --git
a/tests/persistent_handles_001.phpt
b/tests/persistent_handles_001.phpt
index 45332d97cbe1db07a0f4713032b7caf1e8f1bbb3..05d63b53639dc8d716dba50ffa1259a9e5b3b044 100644
(file)
--- a/
tests/persistent_handles_001.phpt
+++ b/
tests/persistent_handles_001.phpt
@@
-4,6
+4,7
@@
persistent handles
<?php
include 'skip.inc';
skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
<?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
?>
--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"])) {
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--
echo "Done\n";
?>
--EXPECTF--
-%
s
TEST
+%
a
TEST
No free handles!
One free request handle within GLOBAL: int(1)
Reusing request handle: bool(true)
No free handles!
One free request handle within GLOBAL: int(1)
Reusing request handle: bool(true)
@@
-56,7
+57,7
@@
stdClass Object
)
)
- [http_request_
pool
] => Array
+ [http_request_
datashare
] => Array
(
[GLOBAL] => Array
(
(
[GLOBAL] => Array
(
@@
-66,7
+67,7
@@
stdClass Object
)
)
- [http_request_datashare] => Array
+ [http_request_datashare
_lock
] => Array
(
[GLOBAL] => Array
(
(
[GLOBAL] => Array
(
@@
-76,7
+77,7
@@
stdClass Object
)
)
- [http_request_
datashare_lock
] => Array
+ [http_request_
pool
] => Array
(
[GLOBAL] => Array
(
(
[GLOBAL] => Array
(