Commit Graph

220 Commits

Author SHA1 Message Date
terrafrost
939f96c4e2 Merge branch '1.0' into 2.0 2024-02-24 14:16:44 -06:00
terrafrost
c55b75199e BigInteger: fix getLength() 2024-02-24 14:15:49 -06:00
terrafrost
2870c8fab3 BigInteger: phpseclib 2.0 updates 2024-02-24 13:29:02 -06:00
terrafrost
2124f399b4 BigInteger: rm visibility modifiers from static variables
the non static variables don't have privacy modifiers so idk that
the static ones ought to either. phpseclib 3.0 uses privacy
modifiers but not the 2.0 branch
2024-02-23 21:55:47 -06:00
terrafrost
e46ef4cdf7 Merge branch '1.0' into 2.0 2024-02-23 19:15:25 -06:00
terrafrost
ad5dbdf212 BigInteger: put guardrails on isPrime() and randomPrime() 2024-02-23 08:57:22 -06:00
terrafrost
1b1e729632 backport enhancements from the 2.0 branch 2023-02-11 22:20:03 -06:00
terrafrost
e42185c672 BigInteger: fix for hex numbers with new lines in them 2023-02-11 19:08:08 -06:00
terrafrost
73b149ea6d Merge branch '1.0' into 2.0 2022-09-13 23:59:59 -05:00
terrafrost
51cafda4a3 make PHP 8.1 32-bit changes compatable with raspberry pi's 2022-09-13 23:56:13 -05:00
terrafrost
eabe4aa23f Merge branch '1.0' into 2.0 2022-04-26 09:02:46 -05:00
terrafrost
c22bf62ce1 BigInteger: tweak to the phpinfo checks 2022-04-26 08:54:19 -05:00
terrafrost
c60b0c3cc7 Merge branch '1.0' into 2.0 2021-12-26 02:23:57 -06:00
David Anderson
a9ed96833e
Check existence of phpinfo() before using 2021-12-21 14:19:00 +00:00
terrafrost
aac5b0a74c Merge branch '1.0' into 2.0 2021-02-26 09:17:52 -06:00
terrafrost
b2b867f032 BigInteger: fix issue with toBits on 32-bit PHP 8 installs 2021-02-26 09:17:05 -06:00
William Desportes
05f6467b1d
Merge branch '1.0' into 2.0 2020-09-09 09:56:23 +02:00
William Desportes
2ae683479a
Fix phpdoc errors 2020-09-09 09:43:26 +02:00
terrafrost
bd6dbd0695 Merge branch '1.0' into 2.0 2019-09-15 17:20:11 -05:00
terrafrost
11fea7d004 fix bug with toBytes() with fixed precision negative numbers 2019-09-15 17:19:35 -05:00
terrafrost
0c6ae076bb Merge branch '1.0' into 2.0 2019-08-03 09:07:59 -05:00
terrafrost
6ae67ef790 BigInteger: fix PHP 7.4 deprecations 2019-08-03 08:58:51 -05:00
terrafrost
d6819a55b0 Merge branch '1.0' into 2.0 2019-06-23 11:33:11 -05:00
terrafrost
9e27b4305e BigInteger: !count -> count 2019-06-23 11:32:46 -05:00
terrafrost
bad47d9b00 Merge branch '1.0' into 2.0 2019-06-23 11:13:09 -05:00
terrafrost
4af1bb4c17 BigInteger: the !== [] check only works on PHP 5.4+ 2019-06-23 11:12:17 -05:00
Remi Collet
25469cb98f fix compat with 5.3 2019-06-21 09:25:24 +02:00
terrafrost
d2085db7b7 Merge branch '1.0' into 2.0 2019-06-19 22:34:11 -05:00
terrafrost
5e9d05a9f4 BigInteger: fix issues with divide method 2019-06-19 22:29:31 -05:00
terrafrost
3ca5b88d58 Merge branch '1.0' into 2.0 2019-05-26 15:38:34 -05:00
terrafrost
677ae387b0 BigInteger: backport GMP fixes from master branch 2019-05-26 15:38:18 -05:00
terrafrost
fae6542efc Merge branch '1.0' into 2.0 2019-05-26 12:17:27 -05:00
terrafrost
8b76e96b83 BigInteger: GMP engine didn't always return 1 or -1 2019-05-26 12:14:44 -05:00
terrafrost
77ffe153a0 Merge branch '1.0' into 2.0 2019-05-26 11:42:01 -05:00
terrafrost
9c67616f1e BigInteger: new BigInteger('00') caused issues with GMP 2019-05-26 11:41:42 -05:00
terrafrost
3e41dc7c07 Merge branch '1.0' into 2.0 2018-10-08 07:35:56 -05:00
terrafrost
f2d92cd4b2 BigInteger: rm pear.php.net link 2018-10-08 07:35:36 -05:00
terrafrost
4548b45b9e Merge branch '1.0' into 2.0 2018-04-09 23:57:25 -05:00
terrafrost
c63c223972 BigInteger: fix for (new BigInteger(48))->toString(true) 2018-04-09 23:47:38 -05:00
Wes
d4a98457bc Check phpinfo() is available before using
Fixes an issue I raised at https://github.com/phpseclib/phpseclib/issues/1255

Proof of logic at https://3v4l.org/RqrHt

I ended up moving more code than discussed in the issue - initially to avoid `$content` being undefined when it came to `preg_match_all()`, but also as it made sense grouping the code that way. Also, initialising `$versions` outside the check, right at the start ensures it's always defined for the `switch` code further down.
2018-03-24 11:05:16 +00:00
terrafrost
364e05babf Merge branch '1.0' into 2.0 2018-01-22 07:22:29 -06:00
terrafrost
92623daba8 BigInteger: fix issues with bitwise_xor 2018-01-22 00:38:42 -06:00
terrafrost
cd58e3be1d Merge branch '1.0-is-prime' into 2.0-is-prime 2017-11-22 19:50:49 -06:00
terrafrost
5ba61146e6 BigInteger: adjustment to isPrime 2017-11-22 19:49:55 -06:00
terrafrost
6d51f2bf85 BigInteger: update bitwise_not fix for 2.0 2017-10-05 05:39:00 -05:00
terrafrost
245e7a15ca Merge branch '1.0' into 2.0 2017-10-05 05:37:56 -05:00
terrafrost
a7ebe7d39d BigInteger: fix bitwise_not for 0 2017-10-05 05:37:42 -05:00
terrafrost
58768cb5aa Merge branch 'gmp-1.0' into gmp-2.0 2017-09-10 15:02:34 -05:00
terrafrost
b6d0e37432 BigInteger: use gmp_import / gmp_export when available 2017-09-10 14:56:57 -05:00
terrafrost
845135f887 add PHP5-style constructors along side PHP4-style ones 2016-09-10 10:41:05 -07:00