Here ya go:
TEST: Integer Tests
Array
(
[$value = "d0000000";] => (string) d0000000
[$value = hexdec( $value );] => (integer) 3489660928
[$value = abs( $value );] => (integer) 3489660928
[$min = 0;] => (integer) 0
[$max = 61;] => (integer) 61
[4294967295 + 1] => (integer) 4294967296
[$value / (4294967295 + 1)] => (double) 0.8125
[$max - $min + 1] => (integer) 62
[($max - $min + 1) * ($value / (4294967295 + 1))] => (double) 50.375
[$out = $min + (($max - $min + 1) * ($value / (4294967295 + 1)));] => (double) 50.375
[$out = intval( $out );] => (integer) 50
[$out = abs( $out );] => (integer) 50
)
TEST: wp_generate_password()
Array
(
[0] => 1 -> 1:Q
[1] => 5 -> 5:XaQWH
[2] => 10 -> 10:l4Wh0Ux8vu
[3] => 16 -> 16:gtpTMMrE429gE2Ku
[4] => 32 -> 32:5KB3xMv31ITrxxhZmylwyEzSzqvE0WPt
[5] => 32 -> 32:RZdFORw2KWBYNHbyL7rfgMI0aoETfdNq
[random_password] => abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
[steps] => Array
(
[0] => 53 -> 1
[1] => 37 -> L
[2] => 46 -> U
[3] => 11 -> l
[4] => 52 -> 0
[5] => 45 -> T
[6] => 15 -> p
[7] => 4 -> e
[8] => 44 -> S
[9] => 61 -> 9
[10] => 41 -> P
[11] => 21 -> v
[12] => 37 -> L
[13] => 53 -> 1
[14] => 29 -> D
[15] => 52 -> 0
[16] => 25 -> z
[17] => 45 -> T
[18] => 56 -> 4
[19] => 12 -> m
[20] => 56 -> 4
[21] => 4 -> e
[22] => 27 -> B
[23] => 5 -> f
[24] => 5 -> f
[25] => 61 -> 9
[26] => 50 -> Y
[27] => 45 -> T
[28] => 36 -> K
[29] => 27 -> B
[30] => 56 -> 4
[31] => 17 -> r
)
[ReflectionFunction] =>
/**
* Generates a random password drawn from the defined set of characters.
*
* @since 2.5
*
* @param int $length The length of password to generate
* @param bool $special_chars Whether to include standard special characters. Default true.
* @param bool $extra_special_chars Whether to include other special characters. Used when
* generating secret keys and salts. Default false.
* @return string The random password
**/
Function [ <user> function wp_generate_password ] {
@@ /data/26/2/60/52/2712541/user/2979996/htdocs/wordpress/wp-includes/pluggable.php 1490 - 1504
- Parameters [3] {
Parameter #0 [ <optional> $length = 12 ]
Parameter #1 [ <optional> $special_chars = true ]
Parameter #2 [ <optional> $extra_special_chars = false ]
}
}
)
TEST: wp_rand()
Array
(
[0] => 'ce28564aebaa4cf2c112b399e05ffddc2543f0cc0dedae382a5f7859eeb7b6c681e5b03f973c73edfb104c0dbafe2f2b'
[1] => 49:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a283eaded0cc0f3452cddff50e993b211c2fc4aabe
[2] => 57:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a283eaded0cc0f3452cddff50e993b211c
[3] => 46:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a283eaded0cc0f3452cddff50e
[4] => 54:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a283eaded0cc0f3452
[5] => 9:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a283eaded0
[6] => 3:b2f2efabd0c401bfde37c379f30b5e186c6b7bee9587f5a2
[7] => 10:b2f2efabd0c401bfde37c379f30b5e186c6b7bee
[8] => 57:b2f2efabd0c401bfde37c379f30b5e18
[9] => 31:b2f2efabd0c401bfde37c379
[10] => 36:b2f2efabd0c401bf
[11] => 60:b2f2efab
[12] => 45:
[13] => 50:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72745dc3ee5d283595b1b29266412d87b0e3e27a09
[14] => 35:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72745dc3ee5d283595b1b29266412d87b0
[15] => 2:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72745dc3ee5d283595b1b29266
[16] => 24:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72745dc3ee5d283595
[17] => 21:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72745dc3ee
[18] => 57:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce076031b72
[19] => 9:cf718932770b0e423c978b9542e92ada5676855e70a5342613073ce0
[20] => 3:cf718932770b0e423c978b9542e92ada5676855e70a53426
[MIN] => 2
[MAX] => 60
[ReflectionFunction] =>
/**
* Generates a random number
*
* @since 2.6.2
*
* @param int $min Lower limit for the generated number (optional, default is 0)
* @param int $max Upper limit for the generated number (optional, default is 4294967295)
* @return int A random number between min and max
*/
Function [ <user> function wp_rand ] {
@@ /data/26/2/60/52/2712541/user/2979996/htdocs/wordpress/wp-includes/pluggable.php 1517 - 1549
- Parameters [2] {
Parameter #0 [ <optional> $min = 0 ]
Parameter #1 [ <optional> $max = 0 ]
}
}
)
TEST: HTTP Connection
Array
(
[headers] => Array
(
[server] => nginx
[date] => Fri, 30 Mar 2012 18:52:59 GMT
[content-type] => text/plain;charset=utf-8
[connection] => close
[vary] => Cookie
[x-hacker] => If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
[x-pingback] => http://jetpack.wordpress.com/xmlrpc.php
[expires] => Wed, 11 Jan 1984 05:00:00 GMT
[last-modified] => Fri, 30 Mar 2012 18:52:59 GMT
[cache-control] => no-cache, must-revalidate, max-age=60
[pragma] => no-cache
)
[body] => OK
[response] => Array
(
[code] => 200
[message] => OK
)
[cookies] => Array
(
)
[filename] =>
)
TEST: HTTPS Connection
Array
(
[headers] => Array
(
[server] => nginx
[date] => Fri, 30 Mar 2012 18:52:59 GMT
[content-type] => text/plain;charset=utf-8
[connection] => close
[vary] => Cookie
[x-hacker] => If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
[x-pingback] => http://jetpack.wordpress.com/xmlrpc.php
[expires] => Wed, 11 Jan 1984 05:00:00 GMT
[last-modified] => Fri, 30 Mar 2012 18:52:59 GMT
[cache-control] => no-cache, must-revalidate, max-age=60
[pragma] => no-cache
)
[body] => OK
[response] => Array
(
[code] => 200
[message] => OK
)
[cookies] => Array
(
)
[filename] =>
)
TEST: Self Connection
Array
(
[headers] => Array
(
[date] => Fri, 30 Mar 2012 18:52:59 GMT
[server] => Apache/2.2.21 (Unix) FrontPage/5.0.2.2635
[x-powered-by] => PHP/5.3.8
[connection] => close
[content-type] => text/plain
)
[body] => XML-RPC server accepts POST requests only.
[response] => Array
(
[code] => 200
[message] => OK
)
[cookies] => Array
(
)
[filename] =>
)