summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
blob: e783c30b7b5c3774d5bfb9b99e27d02152e5d0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_regexp.ini
--FILE--
<?php 
echo strtoupper("id") . "\n";
echo strcmp("1", "2") . "\n";
print("After") . "\n";
?>
--EXPECTF--
Warning: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_functions_regexp_multiple.php on line 2
ID

Warning: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3
-1
After