diff options
| author | jvoisin | 2017-11-29 11:36:57 +0100 |
|---|---|---|
| committer | GitHub | 2017-11-29 11:36:57 +0100 |
| commit | 10437787b0e8ede80976de4a1c22775fc1282f36 (patch) | |
| tree | 1ab911ab000989b98449475eda655a797e278049 /src/tests/deny_writable_execution.phpt | |
| parent | 8df77884f38e7a7334b56aafe2f441567f175af8 (diff) | |
Implement eval hooking
It's not possible to hook the `eval` builtin like other functions.
Diffstat (limited to 'src/tests/deny_writable_execution.phpt')
| -rw-r--r-- | src/tests/deny_writable_execution.phpt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/deny_writable_execution.phpt b/src/tests/deny_writable_execution.phpt index 2870561..c399d35 100644 --- a/src/tests/deny_writable_execution.phpt +++ b/src/tests/deny_writable_execution.phpt | |||
| @@ -32,8 +32,7 @@ include "$dir/non_writable_file.txt"; | |||
| 32 | include "$dir/writable_file.txt"; | 32 | include "$dir/writable_file.txt"; |
| 33 | ?> | 33 | ?> |
| 34 | --EXPECTF-- | 34 | --EXPECTF-- |
| 35 | Code execution within a non-writable file. | 35 | [snuffleupagus][0.0.0.0][readonly_exec][drop] Attempted execution of a writable file (%a/tests/deny_writable_execution.php). |
| 36 | [snuffleupagus][0.0.0.0][readonly_exec][drop] Attempted execution of a writable file (%a/writable_file.txt). | ||
| 37 | --CLEAN-- | 36 | --CLEAN-- |
| 38 | <?php | 37 | <?php |
| 39 | $dir = __DIR__; | 38 | $dir = __DIR__; |
| @@ -41,4 +40,4 @@ chmod("$dir/non_writable_file.txt", 0777); | |||
| 41 | chmod("$dir/writable_file.txt", 0777); | 40 | chmod("$dir/writable_file.txt", 0777); |
| 42 | unlink("$dir/non_writable_file.txt"); | 41 | unlink("$dir/non_writable_file.txt"); |
| 43 | unlink("$dir/writable_file.txt"); | 42 | unlink("$dir/writable_file.txt"); |
| 44 | ?> \ No newline at end of file | 43 | ?> |
