Comments (4)
I used the new #[\ReturnTypeWillChange]
attribute to fix the issue. Making it compatible with PHP 8.1's definition for php_user_filter::onCreate()
will cause issues with older versions of PHP that this library is compatible with.
It'd be nice to add PHP 8.1 to the unit tests but alas TravisCI doesn't yet support PHP 8.1. There are also apparently not yet official Docker containers available for PHP 8.1!
I'll try to do a release this evening!
from mcrypt_compat.
1.0.12 and 2.0.1 have been tagged and released!
from mcrypt_compat.
Sorry to post on a closed issue, but is the lib compatible with PHP 8.0? The comments in https://github.com/phpseclib/mcrypt_compat/blob/master/lib/mcrypt.php say 5 and 7 but not 8.0!
from mcrypt_compat.
@cfletcher - It's compatible. In fact, it's passing the unit tests on 8.0 and 8.1:
https://app.travis-ci.com/github/phpseclib/mcrypt_compat
Really I'd just ignore that line. phpseclib/phpseclib has a ton of files with that line in it and I don't really feel like updating them en masse to add PHP 8. I guess a simple enough sed script could be employed but... someone else can do it.
If you want to submit a PR to this project to remove that line feel free!
from mcrypt_compat.
Related Issues (20)
- create_function deprecated in PHP 7.2 HOT 6
- Enhance project description HOT 1
- Serpent Support HOT 1
- stream_filter_append output is different than original mcrypt when writing HOT 4
- phpseclib_mcrypt_module_open CFB mapping missing from 1.0 branch HOT 2
- test-related questions, understand whether you need to change the test in the testMcryptGenericMode HOT 1
- Fatal Error in Version 1.07 HOT 2
- Module initialization failed... PHP7.2.1
- Buffer bug in filter function HOT 5
- RC2 max key size incompatibility
- Uncaught Error: Class 'phpseclib3\Crypt\Blowfish' not found in lib/mcryptcompat/mcrypt.php:307 HOT 2
- THANKYOU!!!!!! HOT 1
- OFB mode - Uncaught TypeError: Argument 1 passed to mcrypt_enc_get_iv_size() must be an instance of phpseclib3\Crypt\Common\SymmetricKey, bool given HOT 9
- PHP 8.1 deprecation warnings HOT 4
- Thank you thank you thank you
- Php 8.1 deprecation warning HOT 4
- Dependency on phpseclib/phpseclib:dev-master? HOT 5
- Can we also have old PHP behavior? HOT 11
- Could be nice if we can install in windows with $ winget install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcrypt_compat.