Giter VIP home page Giter VIP logo

Comments (8)

bigbyben avatar bigbyben commented on July 30, 2024 1

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.

bigbyben avatar bigbyben commented on July 30, 2024

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.

3ech7oul avatar 3ech7oul commented on July 30, 2024

Hello, I have the same problem. Do you use docker? Are you solved this problem?

from zend-escaper.

bigbyben avatar bigbyben commented on July 30, 2024

Добрый, мы не используем докер, потому что у нас битрикс окружение и нагруженный проект. Решили проблему тем, что установили зенд фреймворк более старой версии 2.2.5, которая кажется корректно работает (давно дело было). Также мы отказались от использования встроенного хелпера для рендеринга input-ов. Не помню уже точно, но у нас было так, что на одной версии php 5.3.x работало, а на другой 5.3.x1 - нет. Кажется, не работало на более новой версии. 5.3

В общем, попробуйте 2.2.5 установить.
Если не сложно, напишите, что у вас получилось.

from zend-escaper.

3ech7oul avatar 3ech7oul commented on July 30, 2024

Я использовал контейнер от битрикса не проверил конфигурацию 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.

froschdesign avatar froschdesign commented on July 30, 2024

@3ech7oul, @bigbyben
Please write in English, otherwise nobody can follow you. Thanks!

from zend-escaper.

bigbyben avatar bigbyben commented on July 30, 2024

@3ech7oul, thank you

from zend-escaper.

weierophinney avatar weierophinney commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.