summaryrefslogtreecommitdiff
path: root/doc/source/features.rst
diff options
context:
space:
mode:
authorjvoisin2025-04-03 12:38:59 +0200
committerjvoisin2025-04-03 12:38:59 +0200
commit41d0a242302a20659090aa1d8bb3f68856331ce9 (patch)
treef5929118361f8f9e9343ac3737cfd67c52804490 /doc/source/features.rst
parentcf35e987a70ee9ffc7000f61f1dd74d003766e26 (diff)
Add some documentation for global strict mode
Diffstat (limited to '')
-rw-r--r--doc/source/features.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/source/features.rst b/doc/source/features.rst
index d0821f2..adb8779 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -328,9 +328,11 @@ be raised if the types aren't matching.
328are optional, but you don't have to use them in your code to benefit from them, 328are optional, but you don't have to use them in your code to benefit from them,
329since every internal function from php has them. 329since every internal function from php has them.
330 330
331This option provides a switch to globally activate this strict mode, 331In vanilla PHP, a single declare directive must be placed at the top of the
332helping to uncover vulnerabilities like the classical 332file to enable strict mode. This option provides a switch to globally activate
333`strcmp bypass <https://danuxx.blogspot.fr/2013/03/unauthorized-access-bypassing-php-strcmp.html>`_ 333this strict mode, helping to uncover vulnerabilities like the classical `strcmp
334bypass
335<https://danuxx.blogspot.fr/2013/03/unauthorized-access-bypassing-php-strcmp.html>`_
334and various other types mismatch. 336and various other types mismatch.
335 337
336This feature is largely inspired from the 338This feature is largely inspired from the