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

preg_replace(): Unknown modifier ']' #194

Open
nvirth opened this issue Mar 12, 2019 · 0 comments
Open

preg_replace(): Unknown modifier ']' #194

nvirth opened this issue Mar 12, 2019 · 0 comments

Comments

@nvirth
Copy link

nvirth commented Mar 12, 2019

Executing these:

use Stringy\Stringy;

$text = Stringy::create('/asd/qwe/');
$text = $text->trim(' \\/');

(A)

With mbstring extension enabled in php.ini
=> It works fine, result is 'asd/qwe'

(B)

Without mbstring
=> It is buggy, result is '', and there is a php warning: preg_replace(): Unknown modifier ']'

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

1 participant