projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix bug#15499 HttpRequest::addHeaders segfaults when passing array(1)
[m6w6/ext-http]
/
tests
/
HttpRequest_002.phpt
diff --git
a/tests/HttpRequest_002.phpt
b/tests/HttpRequest_002.phpt
index 5710d598f565e12011b0bd842fbe72a4dab9572f..736df23903c2680f5eb9c55f7286fd3c31f9fb38 100644
(file)
--- a/
tests/HttpRequest_002.phpt
+++ b/
tests/HttpRequest_002.phpt
@@
-3,7
+3,7
@@
HttpRequest GET/POST
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(
5
);
+checkmin(
"5.2.5"
);
checkcls('HttpRequest');
checkurl('www.google.com');
checkurl('dev.iworks.at');
checkcls('HttpRequest');
checkurl('www.google.com');
checkurl('dev.iworks.at');
@@
-28,7
+28,7
@@
var_dump($r->getResponseMessage()->getResponseCode());
echo "Done";
?>
--EXPECTF--
echo "Done";
?>
--EXPECTF--
-%
s
TEST
+%
a
TEST
Array
(
[effective_url] => http://www.google.com/
Array
(
[effective_url] => http://www.google.com/
@@
-48,7
+48,7
@@
Array
[content_length_download] => %d
[content_length_upload] => %d
[starttransfer_time] => %f
[content_length_download] => %d
[content_length_upload] => %d
[starttransfer_time] => %f
- [content_type] =>
text/html
+ [content_type] =>
%s
[redirect_time] => %d
[redirect_count] => %d
[connect_code] => %d
[redirect_time] => %d
[redirect_count] => %d
[connect_code] => %d
@@
-56,10
+56,10
@@
Array
[proxyauth_avail] => %d
[os_errno] => %d
[num_connects] => %d
[proxyauth_avail] => %d
[os_errno] => %d
[num_connects] => %d
- [ssl_engines] => Array
%s
-
- [cookies] => Array
%s
-
+ [ssl_engines] => Array
+ %a
+ [cookies] => Array
+ %a
[error] =>
)
Array
[error] =>
)
Array
@@
-76,7
+76,7
@@
Array
(
[name] => data.txt
[type] => text/plain
(
[name] => data.txt
[type] => text/plain
- [tmp_name] => %
s
+ [tmp_name] => %
a
[error] => 0
[size] => 1010
)
[error] => 0
[size] => 1010
)