From 41d0a242302a20659090aa1d8bb3f68856331ce9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 3 Apr 2025 12:38:59 +0200 Subject: Add some documentation for global strict mode --- doc/source/features.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/source/features.rst') 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. are optional, but you don't have to use them in your code to benefit from them, since every internal function from php has them. -This option provides a switch to globally activate this strict mode, -helping to uncover vulnerabilities like the classical -`strcmp bypass `_ +In vanilla PHP, a single declare directive must be placed at the top of the +file to enable strict mode. This option provides a switch to globally activate +this strict mode, helping to uncover vulnerabilities like the classical `strcmp +bypass +`_ and various other types mismatch. This feature is largely inspired from the -- cgit v1.3