mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing issue where CakeLog would log suppressed errors even when error reporting was disabled. Fixes #1403
This commit is contained in:
parent
04929ae1df
commit
56415f20cb
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ class CakeLog {
|
|||
* @return void
|
||||
*/
|
||||
function handleError($code, $description, $file = null, $line = null, $context = null) {
|
||||
if ($code === 2048 || $code === 8192) {
|
||||
if ($code === 2048 || $code === 8192 || error_reporting() === 0) {
|
||||
return;
|
||||
}
|
||||
switch ($code) {
|
||||
|
|
Loading…
Add table
Reference in a new issue