summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_const.phpt
blob: e349b8e89c5ab596cc21e368f3f27e7392c79580 (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")) print "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][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_const.php on line 4