From bae085748a5abd7ec4af9f218702274b47155ea1 Mon Sep 17 00:00:00 2001 From: ADmad Date: Wed, 25 Sep 2024 19:20:59 +0530 Subject: [PATCH] Show warning if zend.assertions is not enabled. --- src/Panel/EnvironmentPanel.php | 1 + templates/element/environment_panel.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/Panel/EnvironmentPanel.php b/src/Panel/EnvironmentPanel.php index da582fca..e18b7b7f 100644 --- a/src/Panel/EnvironmentPanel.php +++ b/src/Panel/EnvironmentPanel.php @@ -62,6 +62,7 @@ protected function _prepare(): array 'error_reporting' => ini_get('error_reporting'), 'upload_max_filesize' => ini_get('upload_max_filesize'), 'post_max_size' => ini_get('post_max_size'), + 'zend.assertions' => ini_get('zend.assertions'), ]; // CakePHP Data diff --git a/templates/element/environment_panel.php b/templates/element/environment_panel.php index e6582c0f..c8491249 100644 --- a/templates/element/environment_panel.php +++ b/templates/element/environment_panel.php @@ -34,6 +34,13 @@

CakePHP Version:

+ +
+ You should set zend.assertions to 1 + in your php.ini for your development environment. +
+ +

Application Constants