From 2e41ea594513c6628840e16f98847ca8ec092bfe Mon Sep 17 00:00:00 2001 From: Dany wm Date: Mon, 21 Oct 2024 16:09:49 +0200 Subject: [PATCH] activate assert for php8.3 --- html/test.php | 6 +++++- scenario/XML/ajax-add-card-category.php | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/test.php b/html/test.php index cb3de23e0..89d3fc4d7 100644 --- a/html/test.php +++ b/html/test.php @@ -38,7 +38,11 @@ global $http; define ('TEST_UNIT',1); $http=new HttpInput(); - +if ( ini_get('zend.assertions') != 1 ) { + echo_warning(_('Attention zend.assertions devrait ĂȘtre activĂ©')); + echo p('Il faut changer dans votre fichier .htaccess ou php.ini'); + echo 'voir https://www.php.net/manual/fr/ini.core.php#ini.zend.assertions'; +} $gDossier=$http->request('gDossier',"number", -1); if ($gDossier==-1) { diff --git a/scenario/XML/ajax-add-card-category.php b/scenario/XML/ajax-add-card-category.php index 0d3a9ecea..16945d8e6 100644 --- a/scenario/XML/ajax-add-card-category.php +++ b/scenario/XML/ajax-add-card-category.php @@ -11,7 +11,6 @@ $_GET=array ( $_POST['gDossier']=$gDossierLogInput; $_GET['gDossier']=$gDossierLogInput; $_REQUEST=array_merge($_GET,$_POST); - define ('TEST_UNIT',1); ob_start(); include NOALYSS_HOME.'/ajax_misc.php'; $output=ob_get_clean();