git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for issue #33: excessive usage of numeric charset entities when converting utf8...
[plcapi.git]
/
tests
/
parse_args.php
diff --git
a/tests/parse_args.php
b/tests/parse_args.php
index
4397e64
..
6660b9e
100644
(file)
--- a/
tests/parse_args.php
+++ b/
tests/parse_args.php
@@
-1,7
+1,7
@@
<?php
/**
<?php
/**
- * Common parameter parsing for benchmark
s
and tests scripts.
+ * Common parameter parsing for benchmark and tests scripts.
*
* @param integer DEBUG
* @param string LOCALSERVER
*
* @param integer DEBUG
* @param string LOCALSERVER
@@
-10,9
+10,12
@@
* @param string HTTPSSURI
* @param string PROXY
* @param string NOPROXY
* @param string HTTPSSURI
* @param string PROXY
* @param string NOPROXY
+ * @param bool HTTPSIGNOREPEER
+ * @param int HTTPSVERIFYHOST
+ * @param int SSLVERSION
*
*
- * @copyright (C) 2007-20
014
G. Giunta
- * @license code licensed under the BSD License:
http://phpxmlrpc.sourceforge.net/
license.txt
+ * @copyright (C) 2007-20
15
G. Giunta
+ * @license code licensed under the BSD License:
see file
license.txt
**/
class argParser
{
**/
class argParser
{
@@
-26,6
+29,8
@@
class argParser
'HTTPSSERVER' => 'gggeek.ssl.altervista.org',
'HTTPSURI' => '/sw/xmlrpc/demo/server/server.php',
'HTTPSIGNOREPEER' => false,
'HTTPSSERVER' => 'gggeek.ssl.altervista.org',
'HTTPSURI' => '/sw/xmlrpc/demo/server/server.php',
'HTTPSIGNOREPEER' => false,
+ 'HTTPSVERIFYHOST' => 2,
+ 'SSLVERSION' => 0,
'PROXYSERVER' => null,
'NOPROXY' => false,
'LOCALPATH' => __DIR__,
'PROXYSERVER' => null,
'NOPROXY' => false,
'LOCALPATH' => __DIR__,
@@
-67,7
+72,13
@@
class argParser
$args['HTTPSURI'] = $HTTPSURI;
}
if (isset($HTTPSIGNOREPEER)) {
$args['HTTPSURI'] = $HTTPSURI;
}
if (isset($HTTPSIGNOREPEER)) {
- $args['HTTPSIGNOREPEER'] = bool($HTTPSIGNOREPEER);
+ $args['HTTPSIGNOREPEER'] = (bool)$HTTPSIGNOREPEER;
+ }
+ if (isset($HTTPSVERIFYHOST)) {
+ $args['HTTPSVERIFYHOST'] = (int)$HTTPSVERIFYHOST;
+ }
+ if (isset($SSLVERSION)) {
+ $args['SSLVERSION'] = (int)$SSLVERSION;
}
if (isset($PROXY)) {
$arr = explode(':', $PROXY);
}
if (isset($PROXY)) {
$arr = explode(':', $PROXY);