diff --git a/html/test.php b/html/test.php
index e5eeb9adc..6e85ce86e 100644
--- a/html/test.php
+++ b/html/test.php
@@ -65,19 +65,22 @@ if (!file_exists('authorized_debug'))
}
define('ALLOWED', 1);
load_all_script();
+
// To enable assert , set "zend.assertions" in the php.ini file
-ini_set("assert.active",1);
-assert_options(ASSERT_ACTIVE, 1);
-assert_options(ASSERT_WARNING, 1);
+// deprecated PHP8.3
+//ini_set("assert.active",1);
+//assert_options(ASSERT_ACTIVE, 1);
+//assert_options(ASSERT_WARNING, 1);
//removed in PHP8 assert_options(ASSERT_QUIET_EVAL, 1);
-function my_assert_handler($file, $line, $code)
-{
- echo "
Assert Failed :
- File '$file'
- Line '$line'
- Code '$code'
";
-}
-assert_options(ASSERT_CALLBACK, 'my_assert_handler');
+//
+//function my_assert_handler($file, $line, $code)
+//{
+// echo "
Assert Failed :
+// File '$file'
+// Line '$line'
+// Code '$code'
";
+//}
+//assert_options(ASSERT_CALLBACK, 'my_assert_handler');
/******************************************************************************************************************/
/* Utilities
/******************************************************************************************************************/
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 3fbef3c9f..5f90cb322 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -1349,9 +1349,15 @@ function record_log($p_message)
{
if ( gettype ($p_message) == "object" && method_exists($p_message,"getTraceAsString") == 1) {
-
- error_log("noalyss exception ".$p_message->getMessage(),0);
- error_log("noalyss exception".$p_message->getTraceAsString(),0);
+ $exc=$p_message;
+ do {
+ error_log("noalyss exception message [".$exc->getMessage()."]",0);
+ error_log("noalyss exception code [".$exc->getCode()."]",0);
+ error_log("noalyss exception trace ".$exc->getTraceAsString(),0);
+ error_log("------ ",0);
+ $exc=$exc->getPrevious();
+ if ($exc != null )fwrite ($handle_log,"*********************** Previous *********************** \n");
+ } while ($exc != null);
} else {
error_log("noalyss".var_export($p_message,true),0);
@@ -1376,11 +1382,17 @@ function record_log($p_message)
fwrite($handle_log,"_POST [".var_export($_POST,true)."]");
fwrite ($handle_log,"\n");
if ( gettype ($p_message) == "object" && method_exists($p_message,"getTraceAsString") == 1) {
-
- fwrite($handle_log,"noalyss exception ".$p_message->getMessage());
- fwrite ($handle_log,"\n");
- fwrite($handle_log,"noalyss exception".$p_message->getTraceAsString());
- fwrite ($handle_log,"\n");
+ $exc=$p_message;
+ do {
+ fwrite($handle_log,"noalyss exception message [".$exc->getMessage()."]");
+ fwrite ($handle_log,"\n");
+ fwrite($handle_log,"noalyss exception code [".$exc->getCode()."]");
+ fwrite ($handle_log,"\n");
+ fwrite($handle_log,"noalyss exception trace \n".$exc->getTraceAsString());
+ fwrite ($handle_log,"\n");
+ $exc=$exc->getPrevious();
+ if ($exc != null )fwrite ($handle_log,"*********************** Previous *********************** \n");
+ } while ($exc != null);
} else {
fwrite($handle_log,"noalyss".var_export($p_message,true));
fwrite ($handle_log,"\n");
@@ -1388,7 +1400,7 @@ function record_log($p_message)
}
fwrite ($handle_log,str_repeat("=", 80)."\n");
-
+ fclose($handle_log);
}
diff --git a/scenario/record_log.php b/scenario/record_log.php
new file mode 100644
index 000000000..b6099f059
--- /dev/null
+++ b/scenario/record_log.php
@@ -0,0 +1,48 @@
+