-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
Hey @Minishlink thanks for your contribution. I am generally ok with this but you should add the requirement on the extension to the |
Hi @fgrosse, sure, will do! |
After giving this PR more thought I'm now a bit hesitant. PHPASN1 does not require Maybe we can instead opt-in by detecting if the mbstring extension was loaded and then using the correct function in our own code? Any thoughts? |
I'm all with you about not using I know that @Spomky adds symfony/polyfill-mbstring to his repos. That's one solution. Another solution would be to replace every What do you prefer? |
Hi @Minishlink , That is true that my repos use the symfony/polyfill-mbstring library, but I think I will remove this dependency for the next major revision. I also agree with @fgrosse, the use of |
Thanks for your input. I decided to go with the |
@Minishlink maybe you want to review #64 ? I also had a question about testing if the change actually fixes the described issue that you may be able to answer. |
@fgrosse Will do asap, thanks! |
PHPASN1
is a dependancy ofweb-push-php
. Some of my users havembstring.func_overload
set and thus the library is (in part) broken because of some uses of strlen and substr in PHPASN1.This PR replaces strlen and substr occurences with their unicode safe counterpart (mb_strlen and mb_substr).
Cf. web-push-libs/web-push-php#79