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

fatal error if mbstring.func_overload=2 #79

Closed
gc-profi opened this issue Feb 20, 2017 · 1 comment
Closed

fatal error if mbstring.func_overload=2 #79

gc-profi opened this issue Feb 20, 2017 · 1 comment

Comments

@gc-profi
Copy link

Fatal error: Uncaught Assert\InvalidArgumentException: Bad key encryption key length. in /home/bitrix/www/local/push/vendor/beberlei/assert/lib/Assert/Assertion.php:275
Stack trace:
#0 /home/bitrix/www/local/push/vendor/beberlei/assert/lib/Assert/Assertion.php(949): Assert\Assertion::createException(176, 'Bad key encrypt...', 22, NULL, Array)
#1 /home/bitrix/www/local/push/vendor/beberlei/assert/lib/Assert/Assertion.php(971): Assert\Assertion::choice(176, Array, 'Bad key encrypt...', NULL)
#2 /home/bitrix/www/local/push/vendor/spomky-labs/php-aes-gcm/src/AESGCM.php(31): Assert\Assertion::inArray(176, Array, 'Bad key encrypt...')
#3 /home/bitrix/www/local/push/vendor/minishlink/web-push/src/Encryption.php(88): AESGCM\AESGCM::encrypt('\x1D\xF1\xB1X\xCB\x88\x92\xAE\xE6\x9F\xD6\x03\x8AP\xFA...', '\x05\xE3\xA1\x90\xC0\n\x11j\xBD\xC8\xA0x\xDF\xC1\xAC...', '\v\xD7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...', '')
#4 /home/bitrix/www/local/push/vendor/minishlink/web-push/src/WebPush.php(186): Minishlink\WebPush\Encrypt in /home/bitrix/www/local/push/vendor/beberlei/assert/lib/Assert/Assertion.php on line 275

@Minishlink
Copy link
Member

Hi, thanks for your feedback. I fixed some lines in Web Push, but one dependancy (PHPASN1) also has bugs.

So 16efaec should fix the issue, but as my fix on PHPASN1 is not merged yet, I won't tag a new release yet. Please require dev-master temporarily :)

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

No branches or pull requests

2 participants