diff --git a/htdocs/public/test/test_exec.php b/htdocs/public/test/test_exec.php index 8464ba2eb4f..603671e893d 100644 --- a/htdocs/public/test/test_exec.php +++ b/htdocs/public/test/test_exec.php @@ -62,11 +62,26 @@ if ($dolibarr_main_prod) { * View */ -print 'session_status='.session_status().' (after main.inc.php)'; -print '
'; +echo "Test
\n"; +$out=''; +$ret=0; -//print 'a'.$_SESSION['disablemodules'].'b'; +$file = '/tmp/aaa'; +$f=fopen($file, 'r'); +if ($f) { + $s=fread($f, 4096); + print $s; + fclose($f); +} else { + print "Failed to open file ".$file."
\n"; +} -print "\n
This page is visible. It means you are not locked by another page called in same session."; +exec('ls /dev/std*; sleep 1;', $out, $ret); +print $ret."
\n"; +print_r($out); -//session_write_close(); +$ret = 0; +$out = null; +exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret); +print $ret."
\n"; +print_r($out); diff --git a/htdocs/public/test/test_sessionlock.php b/htdocs/public/test/test_sessionlock.php index 83d21f38aae..8464ba2eb4f 100644 --- a/htdocs/public/test/test_sessionlock.php +++ b/htdocs/public/test/test_sessionlock.php @@ -62,24 +62,11 @@ if ($dolibarr_main_prod) { * View */ -echo "Test\n"; -$out=''; -$ret=0; +print 'session_status='.session_status().' (after main.inc.php)'; +print '
'; -$file = '/tmp/aaa'; -$f=fopen($file, 'r'); -if ($f) { - $s=fread($f, 4096); - print $s; - fclose($f); -} else { - print "Failed to open file ".$file."\n"; -} +//print 'a'.$_SESSION['disablemodules'].'b'; -exec('ls /dev/std*; sleep 1;', $out, $ret); -var_dump($ret); -var_dump($out); +print "\n
This page is visible. It means you are not locked by another page called in same session."; -exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret); -var_dump($ret); -var_dump($out); +//session_write_close();