fix segtv with 5_3
[m6w6/ext-http] / tests / HttpRequest_002.phpt
index a51f00b32971d11251b278fe5bb0a4bc62197d37..b00c649e9f59863a122937ed8a17eb9fd8b81c92 100644 (file)
@@ -3,7 +3,7 @@ HttpRequest GET/POST
 --SKIPIF--
 <?php
 include 'skip.inc';
-checkmin(5);
+checkmin("5.2.5");
 checkcls('HttpRequest');
 checkurl('www.google.com');
 checkurl('dev.iworks.at');
@@ -16,7 +16,7 @@ $r = new HttpRequest('http://www.google.com', HttpRequest::METH_GET);
 $r->send();
 print_r($r->getResponseInfo());
 
-$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST);
+$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HTTP_METH_POST);
 $r->addCookies(array('MyCookie' => 'foobar'));
 $r->addQueryData(array('gq'=>'foobar','gi'=>10));
 $r->addPostFields(array('pq'=>'foobar','pi'=>10));
@@ -28,7 +28,7 @@ var_dump($r->getResponseMessage()->getResponseCode());
 echo "Done";
 ?>
 --EXPECTF--
-%sTEST
+%aTEST
 Array
 (
     [effective_url] => http://www.google.com/
@@ -56,9 +56,9 @@ Array
     [proxyauth_avail] => %d
     [os_errno] => %d
     [num_connects] => %d
-    [ssl_engines] => Array%s
+    [ssl_engines] => Array%a
 
-    [cookies] => Array%s
+    [cookies] => Array%a
 
     [error] => 
 )
@@ -76,7 +76,7 @@ Array
         (
             [name] => data.txt
             [type] => text/plain
-            [tmp_name] => %s
+            [tmp_name] => %a
             [error] => 0
             [size] => 1010
         )