1--TEST-- 2Bug #69315 (disable_functions behaviors inconsistently) 3--INI-- 4disable_functions=strlen,defined,call_user_func,constant,is_string 5--FILE-- 6<?php 7 8var_dump(function_exists("strlen")); 9var_dump(is_callable("strlen")); 10try { 11 var_dump(strlen("xxx")); 12} catch (Error $e) { 13 echo $e->getMessage(), "\n"; 14} 15try { 16 var_dump(defined("PHP_VERSION")); 17} catch (Error $e) { 18 echo $e->getMessage(), "\n"; 19} 20try { 21 var_dump(constant("PHP_VERSION")); 22} catch (Error $e) { 23 echo $e->getMessage(), "\n"; 24} 25try { 26 var_dump(call_user_func("strlen")); 27} catch (Error $e) { 28 echo $e->getMessage(), "\n"; 29} 30try { 31 var_dump(is_string("xxx")); 32} catch (Error $e) { 33 echo $e->getMessage(), "\n"; 34} 35try { 36 var_dump(is_string()); 37} catch (Error $e) { 38 echo $e->getMessage(), "\n"; 39} 40 41?> 42--EXPECT-- 43bool(false) 44bool(false) 45Call to undefined function strlen() 46Call to undefined function defined() 47Call to undefined function constant() 48Call to undefined function call_user_func() 49Call to undefined function is_string() 50Call to undefined function is_string() 51