Comments (8)
Sorry, my english is very bad, but we understod each other. :)
I think, that this bug could be reproduced by setting php.ini mbstring.func_overload = 2.
For example, a russian CMS bitrix use this setting for work.
3ech7oul speak, that setting php.ini mbstring.func_overload = 0 is the fix to the problem. But bitrix is not working with this setting. :(
from zend-escaper.
I have the same problem.
I try to debug ZF. I think that problem is here
https://github.com/zendframework/zendframework/blob/d8adfe90da23af119ae5732195ad50af0009d672/library/Zend/Escaper/Escaper.php#L256
Function bin2hex('a') (Char "a" is a cyrillic char) returns d0b0 but not 0430 (UTF-8 code for this char).
My test configuration is php 5.3 and php 7.0.
Please, help me.
from zend-escaper.
Hello, I have the same problem. Do you use docker? Are you solved this problem?
from zend-escaper.
Добрый, мы не используем докер, потому что у нас битрикс окружение и нагруженный проект. Решили проблему тем, что установили зенд фреймворк более старой версии 2.2.5, которая кажется корректно работает (давно дело было). Также мы отказались от использования встроенного хелпера для рендеринга input-ов. Не помню уже точно, но у нас было так, что на одной версии php 5.3.x работало, а на другой 5.3.x1 - нет. Кажется, не работало на более новой версии. 5.3
В общем, попробуйте 2.2.5 установить.
Если не сложно, напишите, что у вас получилось.
from zend-escaper.
Я использовал контейнер от битрикса не проверил конфигурацию php.ini. Получилось решить проблему установив в php.ini mbstring.func_overload = 0
I used php.ini file from Bitrix where setted mbstring.func_overload = 2
I solved this problem changed mbstring.func_overload = 0
from zend-escaper.
@3ech7oul, @bigbyben
Please write in English, otherwise nobody can follow you. Thanks!
from zend-escaper.
@3ech7oul, thank you
from zend-escaper.
This repository has been closed and moved to laminas/laminas-escaper; a new issue has been opened at laminas/laminas-escaper#6.
from zend-escaper.
Related Issues (14)
- Check For Blockquotes In Docs
- Provide View Helper? HOT 2
- Escaper - htmlAttrMatcher gives a wrong encoding HOT 7
- Escaper should use [:alnum:] instead [a-z0-9] HOT 1
- HtmlAttr, Js, and Css escapers fail for characters outside the BMP HOT 7
- Attribute escaping HOT 5
- HTML escaping forward slash HOT 2
- Add PHP 7.2 support
- Documentation for the "Good" URL escaping is still not good HOT 1
- Check All Headers In Documentation HOT 1
- Check Documentation Code Blocks HOT 1
- Check Documentation For Other Things
- Check Documentation Tables 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 zend-escaper.