summaryrefslogtreecommitdiff
path: root/tests/executor/function_blacklist_printf_function_exists.phpt
blob: 2fe9d33b40c2a61031a526d5fbd39d75d5aa31cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Testing: suhosin.executor.func.blacklist=printf with function_exists()
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.func.blacklist=printf,max
--FILE--
<?php
	var_dump(function_exists("abs"));
	var_dump(function_exists("max"));
	var_dump(function_exists("ord"));
	var_dump(function_exists("printf"));
	var_dump(function_exists("chr"));
?>
--EXPECTF--
bool(true)
bool(false)
bool(true)
bool(false)
bool(true)