summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69315.phpt
blob: 71dac4298f8d4088d543164899160bb6bb309517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--TEST--
Bug #69315 (disable_functions behaviors inconsistently)
--INI--
disable_functions=strlen,defined,call_user_func,constant,is_string
--FILE--
<?php

var_dump(function_exists("strlen"));
var_dump(is_callable("strlen"));
var_dump(strlen("xxx"));
var_dump(defined("PHP_VERSION"));
var_dump(constant("PHP_VERSION"));
var_dump(call_user_func("strlen"));
var_dump(is_string("xxx"));

--EXPECTF--
bool(false)
bool(true)

Warning: strlen() has been disabled for security reasons in %sbug69315.php on line %d
NULL

Warning: defined() has been disabled for security reasons in %sbug69315.php on line %d
NULL

Warning: constant() has been disabled for security reasons in %sbug69315.php on line %d
NULL

Warning: call_user_func() has been disabled for security reasons in %sbug69315.php on line %d
NULL

Warning: is_string() has been disabled for security reasons in %sbug69315.php on line %d
NULL