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