summaryrefslogtreecommitdiff
path: root/tests/executor/disable_emod_off.phpt
diff options
context:
space:
mode:
authorStefan Esser2014-02-11 16:44:43 +0100
committerStefan Esser2014-02-11 16:44:43 +0100
commit65c1c61cc3360337a58ea0359dc48f45127ca2d6 (patch)
treefa64fda914357ad0aefbf7430b6babb3a01106a9 /tests/executor/disable_emod_off.phpt
parent6f3ba2395df8eebcb26f8064192d0e5297adcdbc (diff)
Fix some tests
Diffstat (limited to 'tests/executor/disable_emod_off.phpt')
-rw-r--r--tests/executor/disable_emod_off.phpt14
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--
6error_reporting=E_ALL&~E_DEPRECATED
6suhosin.log.sapi=64 7suhosin.log.sapi=64
7suhosin.executor.disable_emodifier=0 8suhosin.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--
16string(5) "HALLO" 22string(5) "HALLO"