summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_ret.phpt
blob: 7a1659933d529a550904220a06369dd8df4a4411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Disable functions check on `ret`.
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_ret.ini
--FILE--
<?php 
echo strpos("pouet", "p");
echo stripos("pouet", "p");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos' in %a/disabled_functions_ret.php:2, because the function returned '0', which matched a rule.