summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_const.phpt
blob: 15005588126d4c50b99db2eebfde035f48308cbc (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);
strtoupper("test");
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_const.php on line 4