This commit is contained in:
terrafrost 2016-11-08 09:42:38 -06:00
commit 71ab996806
5 changed files with 16 additions and 24 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## 1.0.5 - 2016-10-22
- fix issue preventing installation of 1.0.x via Composer (#1048)
## 1.0.4 - 2016-10-03 ## 1.0.4 - 2016-10-03
- fix E_DEPRECATED errors on PHP 7.0 and 7.1 (#1041) - fix E_DEPRECATED errors on PHP 7.0 and 7.1 (#1041)

View File

@ -6,7 +6,7 @@ MIT-licensed pure-PHP implementations of an arbitrary-precision integer
arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael,
AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509 AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509
* [Download (1.0.4)](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.4.zip/download) * [Download (1.0.5)](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.5.zip/download)
* [Browse Git](https://github.com/phpseclib/phpseclib) * [Browse Git](https://github.com/phpseclib/phpseclib)
* [Code Coverage Report](http://phpseclib.bantux.org/code_coverage/1.0/latest/) * [Code Coverage Report](http://phpseclib.bantux.org/code_coverage/1.0/latest/)

View File

@ -74,8 +74,8 @@
"System": "phpseclib/" "System": "phpseclib/"
}, },
"files": [ "files": [
"phpseclib/Crypt/Random.php", "phpseclib/bootstrap.php",
"phpseclib/bootstrap.php" "phpseclib/Crypt/Random.php"
] ]
} }
} }

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "ef3ada42c17aee960068e0a98b4de602", "hash": "24648c5326ee237cd79bb0d311b16cb8",
"content-hash": "cec0167a357df0f3da215133e2424a6c", "content-hash": "cec0167a357df0f3da215133e2424a6c",
"packages": [], "packages": [],
"packages-dev": [ "packages-dev": [

View File

@ -7,25 +7,13 @@
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
// Set up include path accordingly. This is especially required because some $loader_path = __DIR__ . '/../vendor/autoload.php';
// class files of phpseclib require() other dependencies. if (!file_exists($loader_path)) {
set_include_path(implode(PATH_SEPARATOR, array( echo "Dependencies must be installed using composer:\n\n";
dirname(__FILE__) . '/../phpseclib/', echo "php composer.phar install\n\n";
dirname(__FILE__) . '/', echo "See http://getcomposer.org for help with installing composer\n";
get_include_path(), exit(1);
)));
require_once 'Crypt/Random.php';
function phpseclib_autoload($class)
{
$file = str_replace('_', '/', $class) . '.php';
if (phpseclib_resolve_include_path($file)) {
// @codingStandardsIgnoreStart
require $file;
// @codingStandardsIgnoreEnd
}
} }
spl_autoload_register('phpseclib_autoload'); $loader = include $loader_path;
$loader->add('', __DIR__);