--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpMessage');
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
X
"
object(HttpMessage)#%d (%d) {
- ["type":protected]=>
+ ["type%sprotected%s]=>
int(2)
- ["body":protected]=>
+ ["body%sprotected%s]=>
string(0) ""
- ["requestMethod":protected]=>
+ ["requestMethod%sprotected%s]=>
string(0) ""
- ["requestUrl":protected]=>
+ ["requestUrl%sprotected%s]=>
string(0) ""
- ["responseStatus":protected]=>
+ ["responseStatus%sprotected%s]=>
string(2) "Ok"
- ["responseCode":protected]=>
+ ["responseCode%sprotected%s]=>
int(200)
- ["httpVersion":protected]=>
+ ["httpVersion%sprotected%s]=>
float(1.1)
- ["headers":protected]=>
+ ["headers%sprotected%s]=>
array(1) {
["Server"]=>
string(9) "Funky/1.0"
}
- ["parentMessage":protected]=>
+ ["parentMessage%sprotected%s]=>
NULL
}
int(1)
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
int(3)
}
object(HttpQueryString)#1 (2) {
- ["queryArray":"HttpQueryString":private]=>
+ ["queryArray%sprivate%s]=>
&array(3) {
["c"]=>
string(3) "3.4"
string(1) "2"
}
}
- ["queryString":"HttpQueryString":private]=>
+ ["queryString%sprivate%s]=>
&string(49) "c=3.4&r%5B0%5D=1&r%5B1%5D=2&r%5B2%5D=3&z%5B0%5D=2"
}
array(3) {
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
int(3)
}
object(HttpQueryString)#1 (2) {
- ["queryArray":"HttpQueryString":private]=>
+ ["queryArray%sprivate%s]=>
array(3) {
["c"]=>
string(3) "3.4"
string(1) "2"
}
}
- ["queryString":"HttpQueryString":private]=>
+ ["queryString%sprivate%s]=>
string(49) "c=3.4&r%5B0%5D=1&r%5B1%5D=2&r%5B2%5D=3&z%5B0%5D=2"
}
array(3) {
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkext('iconv');
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
--EXPECTF--
%aTEST
object(HttpQueryString)#3 (2) {
- ["queryArray":"HttpQueryString":private]=>
+ ["queryArray%sprivate%s]=>
array(1) {
["bar"]=>
array(1) {
int(1)
}
}
- ["queryString":"HttpQueryString":private]=>
+ ["queryString%sprivate%s]=>
string(14) "bar%5Bbaz%5D=1"
}
object(HttpQueryString)#4 (2) {
- ["queryArray":"HttpQueryString":private]=>
+ ["queryArray%sprivate%s]=>
array(1) {
["bar"]=>
array(1) {
int(0)
}
}
- ["queryString":"HttpQueryString":private]=>
+ ["queryString%sprivate%s]=>
string(14) "bar%5Bbaz%5D=0"
}
Done
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequestPool');
checkurl('www.php.net');
checkurl('dev.iworks.at');
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequest');
checkcls('HttpRequestPool');
?>
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequestPool');
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequest');
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequest');
checkurl('www.google.com');
checkurl('dev.iworks.at');
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkurl('arweb.info');
skipif(!http_support(HTTP_SUPPORT_SSLREQUESTS), 'need ssl-request support')
?>
["type:protected"]=>
int(2)
["body:protected"]=>
- string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1"?>
+ string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
<methodCall>
<methodName>testMethod</methodName>
<params>
["type:protected"]=>
int(2)
["body:protected"]=>
- string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1"?>
+ string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
<methodCall>
<methodName>testMethod</methodName>
<params>
["type:protected"]=>
int(2)
["body:protected"]=>
- string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1"?>
+ string(309) "string(294) "<?xml version="1.0" encoding="iso-8859-1%s]>
<methodCall>
<methodName>testMethod</methodName>
<params>
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls("HttpRequest");
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcgi();
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcgi();
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcgi();
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
--ENV--
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=example.com
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=www.example.com
http://www.example.com/foo/baz
http://mike@www.example.com/foo/baz
http://www.example.com/?a%5B0%5D=1&a%5B1%5D=b&b=c
-Done
\ No newline at end of file
+Done
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
checkcls('HttpRequest');
?>
--FILE--
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!extension_loaded('hash'), 'need ext/hash support');
?>
--FILE--
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!extension_loaded('hash'), 'need ext/hash support');
?>
--FILE--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_FOO=bar
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_ACCEPT=application/xml, application/xhtml+xml, text/html ; q = .8
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
?>
--ENV--
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
skipif(function_exists('zend_thread_id'), "need non-ZTS build");
?>
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=localhost
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=example.com
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
checkext('session');
?>
--ENV--
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=example.com
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=localhost
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_HOST=example.com
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=-5
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=5-6
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=5981-
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=5990-6000
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-3, 4-5,9-11
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-0
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-0,-1
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-3, 4-5,9-11
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-0,-1
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-0
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=5-9
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=-9
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=1000-
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=-1111
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-1
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.3);
+checkmin("5.2.5");
?>
--ENV--
HTTP_RANGE=bytes=0-1
function skipif($if, $skip) { if ($if) { fprintf(STDOUT, "skip $skip"); exit(); }}
function checkcgi() { skipif(!strncasecmp('CLI', PHP_SAPI, 3), 'need CGI SAPI'); }
function checkext($ext) { skipif(!extension_loaded($ext), "need ext/$ext"); }
-function checkmin($ver) { skipif(round($ver,1) > round((double) PHP_VERSION,1), sprintf("need PHP >= v%0.1f",$ver)); }
-function checkmax($ver) { skipif(round($ver,1) < round((double) PHP_VERSION,1), sprintf("need PHP <= v%0.1f",$ver)); }
+function checkmin($ver) { skipif(version_compare(PHP_VERSION, $ver) < 0, sprintf("need PHP >= v%s",$ver)); }
+function checkmax($ver) { skipif(version_compare(PHP_VERSION, $ver) > 0, sprintf("need PHP <= v%s",$ver)); }
function checkurl($url) { skipif(!@fsockopen($url, 80), "$url not responsive"); }
function checkcls($cls) { skipif(!class_exists($cls), "need class $cls"); }
function checkver($ver) { checkmin($ver); }
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
?>
--FILE--
<?php
--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5.3);
+checkmin("5.2.5");
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
?>
--FILE--