summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_chmod_php8.phpt
blob: c947ba7b8005999ed2c549ca051aab07084ed825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Disable functions - chmod, in php8
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID < 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_chmod_php8.ini
--FILE--
<?php
chmod( 'foo', 0777 );
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'chmod', because its argument '$permissions' content (511) matched a rule in %a.php on line %d