summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_ret2.phpt
blob: b713201d2ab54bc1eb30ca7058012973587a43e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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 stripos("pouet", "p");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/disabled_functions_ret2.php:2, because the return value (0) of the function 'stripos' matched a rule.