Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of dynamic property is deprecated #1870

Closed
wants to merge 1 commit into from
Closed

Creation of dynamic property is deprecated #1870

wants to merge 1 commit into from

Conversation

luigifab
Copy link

@luigifab luigifab commented Dec 3, 2022

Without this change, with PHP 8.2 I have: Deprecated functionality: Creation of dynamic property phpseclib3\Crypt\Blowfish::$mcrypt_polyfill_init is deprecated in .../mcryptcompat/mcrypt.php on line 680 (with latest mcryptcompat and OpenMage)

@terrafrost
Copy link
Member

I'm not putting a variable exclusively used in another library (mcrypt_compat) into phpseclib core. The fix for this needs to live in mcrypt_compat.

@terrafrost
Copy link
Member

I added a new method - continuousBufferEnabled():

16df002

It'll be that method that I'll call, instead of $mcrypt_polyfill_init, in mcrypt_compat. I'll do that after I release a new version of phpseclib in a few days.

@terrafrost
Copy link
Member

New versions of mcrypt_compat have been released that should fix this!

I wound up not using continuousBufferEnabled() as that apparently doesn't work on ECB mode so I wound up just using reflection. Had I known I'd be going that route I could have done a release sooner but whatever. It's done now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants