File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,18 @@ the ``PasswordDigest`` header value matches with the user's password.
289
289
provider for the given token. In the case of multiple providers, the
290
290
authentication manager will then move to the next provider in the list.
291
291
292
+ .. note ::
293
+
294
+ While the :phpfunction: `hash_equals ` function was introduced in PHP 5.6,
295
+ you are safe to use it with any PHP version in your Symfony application. In
296
+ PHP versions prior to 5.6, `Symfony Polyfill `_ (which is included in
297
+ Symfony) will define the function for you.
298
+
299
+ .. versionadded :: 2.8
300
+ Symfony Polyfill is included by default since Symfony 2.8. Prior to Symfony 2.8,
301
+ you have to execute ``composer require symfony/polyfill-php56 `` to be able to
302
+ use ``hash_equals `` on older PHP versions.
303
+
292
304
The Factory
293
305
-----------
294
306
@@ -666,3 +678,4 @@ in the factory and consumed or passed to the other classes in the container.
666
678
.. _`WSSE` : http://www.xml.com/pub/a/2003/12/17/dive.html
667
679
.. _`nonce` : https://en.wikipedia.org/wiki/Cryptographic_nonce
668
680
.. _`timing attacks` : https://en.wikipedia.org/wiki/Timing_attack
681
+ .. _`Symfony Polyfill` : https://github.com/symfony/polyfill
You can’t perform that action at this time.
0 commit comments