diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_include_once.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_include_once.phpt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/tests/disable_function/disabled_functions_include_once.phpt b/src/tests/disable_function/disabled_functions_include_once.phpt index 57cb5a1..8b1bec8 100644 --- a/src/tests/disable_function/disabled_functions_include_once.phpt +++ b/src/tests/disable_function/disabled_functions_include_once.phpt | |||
| @@ -7,21 +7,20 @@ sp.configuration_file={PWD}/config/config_disabled_functions_include.ini | |||
| 7 | --FILE-- | 7 | --FILE-- |
| 8 | <?php | 8 | <?php |
| 9 | $dir = __DIR__; | 9 | $dir = __DIR__; |
| 10 | |||
| 11 | // Just inc ase | ||
| 12 | @unlink($dir . '/test.bla'); | ||
| 13 | @unlink($dir . '/test.sim'); | ||
| 14 | |||
| 10 | file_put_contents($dir . '/test.bla', "BLA\n"); | 15 | file_put_contents($dir . '/test.bla', "BLA\n"); |
| 11 | file_put_contents($dir . '/test.sim', "MEH\n"); | 16 | file_put_contents($dir . '/test.sim', "MEH\n"); |
| 12 | include_once $dir . '/test.bla'; | 17 | include_once $dir . '/test.bla'; |
| 13 | include_once $dir . '/test.sim'; | 18 | include_once $dir . '/test.sim'; |
| 14 | echo "1337\n"; | 19 | echo "1337\n"; |
| 15 | ?> | 20 | ?> |
| 16 | --CLEAN-- | ||
| 17 | <?php | ||
| 18 | $dir = __DIR__; | ||
| 19 | unlink($dir . '/test.bla'); | ||
| 20 | unlink($dir . '/test.sim'); | ||
| 21 | ?> | ||
| 22 | --EXPECTF-- | 21 | --EXPECTF-- |
| 23 | BLA | 22 | BLA |
| 24 | 23 | ||
| 25 | Warning: [snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'include_once', because its argument 'inclusion path' content (%a/test.sim) matched a rule in %a/disabled_functions_include_once.php on line 6 | 24 | Warning: [snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'include_once', because its argument 'inclusion path' content (%a/test.sim) matched a rule in %a/disabled_functions_include_once.php on line %d |
| 26 | MEH | 25 | MEH |
| 27 | 1337 | 26 | 1337 |
