summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_local_var_const.phpt
blob: 3f509cdf8ef5658372e57a86af4658d5afd0c1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Disable functions - match on a constant
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_local_var_const.ini
--FILE--
<?php
$a = 1337;
define("MY_CONST", $a);
strlen("test");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_const.php:4.