Hi,
> then suddenly error_reporting is defaulting to E_ALL.
How and where did you see it?
All versions of PHP for Wampserver are with E_ALL
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; [php.net]
error_reporting = E_ALL
What is seen in Left-Click Wampmanager icon -> PHP -> PHP settings?
Wampmanager never changes error_reporting and only reads the value.
Try: Right-Click -> Restart from zero.
Nota : error_reporting(?int $error_level = null): int
The error_reporting() function sets the error_reporting directive at runtime. PHP has many levels of errors, using this function
sets that level for the duration (runtime) of your script. If the optional error_level is not set, error_reporting() will just return the current error reporting level.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons