Compatibility php8.3, scenario test
This commit is contained in:
parent
2e41ea5945
commit
b5ea6eee0f
9 changed files with 91 additions and 38 deletions
|
|
@ -65,17 +65,6 @@ 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);
|
||||
//removed in PHP8 assert_options(ASSERT_QUIET_EVAL, 1);
|
||||
function my_assert_handler($file, $line, $code)
|
||||
{
|
||||
echo "<hr>Assert Failed :
|
||||
File '$file'<br />
|
||||
Line '$line'<br />
|
||||
Code '$code'<br /><hr />";
|
||||
}
|
||||
/******************************************************************************************************************/
|
||||
/* Utilities
|
||||
/******************************************************************************************************************/
|
||||
|
|
@ -279,4 +268,4 @@ else
|
|||
echo "<p>Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes ";
|
||||
echo '</p>';
|
||||
echo "<p>Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes</p>";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue