Fabien Potencier ca4d96b7b7 bug #3237 Replace strtolower() with strtr() when dealing with method names (mpdude)
This PR was squashed before being merged into the 1.x branch (closes #3237).

Discussion
----------

Replace strtolower() with strtr() when dealing with method names

This is to improve consistency with the implementation of case-insensitivity for method names etc. in the Zend Engine: In fact, the ZE does not apply the internal `strtolower` implementation, but just maps ASCII `A-Z` to `a-z`.

This was done in https://github.com/php/php-src/commit/582514d4c7b216dbdc7a8429962cf3e5776206f0 to fix issues like https://bugs.php.net/bug.php?id=18556.

Additionally, `strtok` might give a tiny (measurable?) performance gain over `strtolower`, plus it is not locale-dependant.

Commits
-------

30feddef Replace strtolower() with strtr() when dealing with method names
2020-01-08 09:27:15 +01:00
2019-12-27 08:28:48 +01:00
2019-11-11 17:50:21 +01:00
2019-10-22 17:32:36 +02:00
2019-10-17 09:29:33 +02:00
2019-08-08 18:07:23 +02:00
2020-01-01 18:09:02 +01:00
2019-12-20 13:14:10 +01:00
2019-11-28 14:58:09 +01:00
2020-01-01 18:09:02 +01:00
2019-11-28 14:58:09 +01:00
2019-06-28 17:37:46 +02:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://blackfire.io/docs/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%