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_off.phpt | |
| parent | 6f3ba2395df8eebcb26f8064192d0e5297adcdbc (diff) | |
Fix some tests
Diffstat (limited to 'tests/executor/disable_emod_off.phpt')
| -rw-r--r-- | tests/executor/disable_emod_off.phpt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/executor/disable_emod_off.phpt b/tests/executor/disable_emod_off.phpt index 3c9cb01..65908f9 100644 --- a/tests/executor/disable_emod_off.phpt +++ b/tests/executor/disable_emod_off.phpt | |||
| @@ -3,14 +3,20 @@ Testing: suhosin.executor.disable_emodifier=0 | |||
| 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=0 | 8 | suhosin.executor.disable_emodifier=0 |
| 8 | --FILE-- | 9 | --FILE-- |
| 9 | <?php | 10 | <?php |
| 10 | $text = "HALLO"; | 11 | |
| 11 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | 12 | function doit() |
| 12 | $text = "HalLO"; | 13 | { |
| 13 | var_dump(preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | 14 | $text = "HALLO"; |
| 15 | var_dump(@preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | ||
| 16 | $text = "HalLO"; | ||
| 17 | var_dump(@preg_replace('/[a-z]/e', "strtoupper('\\0')", $text)); | ||
| 18 | } | ||
| 19 | doit(); | ||
| 14 | ?> | 20 | ?> |
| 15 | --EXPECTF-- | 21 | --EXPECTF-- |
| 16 | string(5) "HALLO" | 22 | string(5) "HALLO" |
