Compatibility php8.3, scenario test

This commit is contained in:
sparkyx 2024-11-01 10:05:37 +01:00
parent 2e41ea5945
commit b5ea6eee0f
9 changed files with 91 additions and 38 deletions

View file

@ -0,0 +1,41 @@
<?php
/**
* @brief test ajax_display_letter.php , display detail of a lettering operation
*/
//@description: test ajax_display_letter.php
$_GET=array (
'gDossier' => '25',
'j_id' => '343',
'obj_type' => 'card',
'search_start' => '01.01.2019',
'search_end' => '31.12.2019',
'op' => 'dl',
);
$_POST=array (
);
$_POST['gDossier']=$gDossierLogInput;
$_GET['gDossier']=$gDossierLogInput;
$_REQUEST=array_merge($_GET,$_POST);
echo h1('Raw');
include 'ajax_misc.php';
echo h1('Détail');
ob_start();
include 'ajax_misc.php';
$var=ob_get_contents();
ob_end_clean();
$xml=simplexml_load_string($var);
foreach ($xml as $key=>$value) {
echo ("key is $key<br>");
echo '<textarea class="w-100" rows="10">';
print_r( $value);
echo '</textarea>';
echo '<hr>';
print_r( $value);
echo '<hr>';
}