blob: b41c74d6a0110c2e3f8cfa4d5d94510b4956cceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_method.ini
--FILE--
<?php
class AwesomeClass {
function method1($a) {
echo "method1:" . $a . "\n";
}
function method2($a) {
echo "method2:" . $a . "\n";
}
function method3($a) {
echo "method3:" . $a . "\n";
}
}
$c = new AwesomeClass();
$c->method1("pif");
$c->method2("paf");
$c->method3("pouet");
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'AwesomeClass::method1' in %a/disabled_functions_method.php on line 4
|