diff options
| author | Stefan Esser | 2014-02-11 16:44:43 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-11 16:44:43 +0100 |
| commit | 65c1c61cc3360337a58ea0359dc48f45127ca2d6 (patch) | |
| tree | fa64fda914357ad0aefbf7430b6babb3a01106a9 /tests/executor/disable_emod_on.phpt | |
| parent | 6f3ba2395df8eebcb26f8064192d0e5297adcdbc (diff) | |
Fix some tests
Diffstat (limited to 'tests/executor/disable_emod_on.phpt')
| -rw-r--r-- | tests/executor/disable_emod_on.phpt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/executor/disable_emod_on.phpt b/tests/executor/disable_emod_on.phpt index 6daf82f..0f26d65 100644 --- a/tests/executor/disable_emod_on.phpt +++ b/tests/executor/disable_emod_on.phpt | |||
| @@ -3,17 +3,22 @@ Testing: suhosin.executor.disable_emodifier=1 | |||
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php include "../skipifnotcli.inc"; ?> | 4 | <?php include "../skipifnotcli.inc"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | error_reporting=E_ALL&~E_DEPRECATED | ||
| 6 | suhosin.log.sapi=64 | 7 | suhosin.log.sapi=64 |
| 7 | suhosin.executor.disable_emodifier=1 | 8 | suhosin.executor.disable_emodifier=1 |
| 8 | --FILE-- | 9 | --FILE-- |
| 9 | <?php | 10 | <?php |
| 10 | $text = "HALLO"; | 11 | function doit() |
| 11 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | 12 | { |
| 12 | $text = "HalLO"; | 13 | $text = "HALLO"; |
| 13 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | 14 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); |
| 15 | $text = "HalLO"; | ||
| 16 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | ||
| 17 | } | ||
| 18 | doit(); | ||
| 14 | ?> | 19 | ?> |
| 15 | --EXPECTF-- | 20 | --EXPECTF-- |
| 16 | string(5) "HALLO" | 21 | string(5) "HALLO" |
| 17 | ALERT - use of preg_replace() with /e modifier is forbidden by configuration (attacker 'REMOTE_ADDR not set', file '%s', line 5) | 22 | ALERT - use of preg_replace() with /e modifier is forbidden by configuration (attacker 'REMOTE_ADDR not set', file '%s', line 7) |
| 18 | 23 | ||
| 19 | Fatal error: SUHOSIN - Use of preg_replace() with /e modifier is forbidden by configuration in %s(5) : regexp code on line 5 | 24 | Fatal error: SUHOSIN - Use of preg_replace() with /e modifier is forbidden by configuration in %s(7) : regexp code on line %d |
