summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_ret_val.phpt
blob: 8a02b297d763d888a7ae3f2209cfce38df249745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Disable functions ret val
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_retval.ini
--FILE--
<?php 
echo str_repeat("fufu",1)."\n";
echo str_repeat("fufufu",1);
?>
--EXPECTF--
fufu
[snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/disabled_functions_ret_val.php:3, because the return value (fufufu) of the function 'str_repeat' matched a rule.