This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mt_srand(1361152757.2); | |
for ($i=1; $i < 25; $i++) { | |
echo mt_rand(), PHP_EOL; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
/** | |
* This script check how PHP makes HTTPS (SSL/TLS) requests using PHP Streams | |
* or cURL. Configuration options are passed as GET parameters, for example: | |
* http://localhost/checksslcontext.php?reconfigure=1 | |
* | |
* Configuration: | |
* http://localhost/checksslcontext.php | |
* Basic PHP Streams using file_get_contents(). Default settings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script is designed as a simple tool to run comparisons between varying | |
* cipher suite lists used by PHP 5.5, cURL and Mozilla. The ciphersuites are | |
* are hardcoded and date to 01 February 2014 | |
* | |
* The differences are restrictions, e.g. Mozilla diff from DEFAULT shows ciphers | |
* Mozilla has removed, etc. The differences should all be SSLv3 related. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('PACKAGE_LIST', 'list.txt'); | |
define('CODING_STANDARD', 'PSR2'); | |
define('SEVERITY', 1); | |
define('ENCODING', 'utf-8'); | |
define('REPORT', 'source'); | |
define('EXTENSIONS', 'php'); | |
$excluded = [ | |
'*/test/*', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// when replaced for commit: https://github.com/padraic/composer/commit/2972ec3d8621acd9c415b7b1425586b90e7cea40 | |
/* | |
* This file is part of Composer. | |
* | |
* (c) Nils Adermann <[email protected]> | |
* Jordi Boggiano <[email protected]> | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'https://www.packagist.org'; | |
$host = 'xxx.packagist.org'; | |
$ciphers = implode(':', array( | |
'ECDHE-RSA-AES128-GCM-SHA256', | |
'ECDHE-ECDSA-AES128-GCM-SHA256', | |
'ECDHE-RSA-AES256-GCM-SHA384', | |
'ECDHE-ECDSA-AES256-GCM-SHA384', |
OlderNewer