summaryrefslogtreecommitdiff
path: root/tests/executor/function_whitelist_function_exists.phpt
blob: bc515ab57088f004818ed44c6beeab81698703f2 (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.whitelist with function_exists()
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.func.whitelist=printf,max,function_exists,var_dump
--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(false)
bool(true)
bool(false)
bool(true)
bool(false)