summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_8.phpt
blob: a80ac04672ae9d34c904b3563879fd4e288bc073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Disable functions - match on a local variable
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_local_var.ini
--FILE--
<?php
namespace qwe {
  const ASD = 'qwerty';
}
namespace asd {
  const asd = 'qwe';
  echo "Valeur: " . \qwe\ASD . "\n";
  strtoupper("qwe");
}
?>
--EXPECTF--
Valeur: qwerty

Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_8.php on line 8