summaryrefslogtreecommitdiff
path: root/src/tests/deny_writable/deny_writable_execution_simulation.phpt
diff options
context:
space:
mode:
authorjvoisin2023-01-04 19:06:28 +0100
committerjvoisin2023-01-04 19:10:38 +0100
commit1bf0f3ec9088d34383c564d6306901ae6dc94cb5 (patch)
treed484c173bacd0e5c5d2847b43f99e99d26074019 /src/tests/deny_writable/deny_writable_execution_simulation.phpt
parent0423e1b63364f4dd741d3a8ac8a880407ff37371 (diff)
Fix the CI for PHP8.2
Diffstat (limited to 'src/tests/deny_writable/deny_writable_execution_simulation.phpt')
-rw-r--r--src/tests/deny_writable/deny_writable_execution_simulation.phpt20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt
index d4e4801..39dab32 100644
--- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt
+++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt
@@ -22,6 +22,8 @@ sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini
22$dir = __DIR__; 22$dir = __DIR__;
23 23
24// just in case 24// just in case
25@chmod("$dir/non_writable_file.txt", 0777);
26@chmod("$dir/writable_file.txt", 0777);
25@unlink("$dir/non_writable_file.txt"); 27@unlink("$dir/non_writable_file.txt");
26@unlink("$dir/writable_file.txt"); 28@unlink("$dir/writable_file.txt");
27 29
@@ -32,23 +34,15 @@ chmod("$dir/non_writable_file.txt", 0400);
32include "$dir/writable_file.txt"; 34include "$dir/writable_file.txt";
33include "$dir/non_writable_file.txt"; 35include "$dir/non_writable_file.txt";
34?> 36?>
35--CLEAN--
36<?php
37$dir = __DIR__;
38chmod("$dir/non_writable_file.txt", 0777);
39chmod("$dir/writable_file.txt", 0777);
40unlink("$dir/non_writable_file.txt");
41unlink("$dir/writable_file.txt");
42?>
43--EXPECTF-- 37--EXPECTF--
44Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/deny_writable_execution_simulation.php) in %a/deny_writable_execution_simulation.php on line 2 38Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/deny_writable_execution_simulation.php) in %a/deny_writable_execution_simulation.php on line %d
45 39
46Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/deny_writable_execution_simulation.php on line 12 40Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/deny_writable_execution_simulation.php on line %d
47 41
48Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/writable_file.txt on line 1 42Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/writable_file.txt on line %d
49Code execution within a writable file. 43Code execution within a writable file.
50 44
51Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %s/tests/deny_writable/deny_writable_execution_simulation.php on line 13 45Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %s/tests/deny_writable/deny_writable_execution_simulation.php on line %d
52 46
53Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %src/tests/deny_writable/non_writable_file.txt on line 1 47Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %src/tests/deny_writable/non_writable_file.txt on line %d
54Code execution within a non-writable file. 48Code execution within a non-writable file.