1--TEST--
2ReflectionFunction::isDisabled
3--CREDITS--
4Stefan Koopmanschap <stefan@phpgg.nl>
5TestFest PHP|Tek
6--INI--
7disable_functions=is_file
8--FILE--
9<?php
10try {
11    $rf = new ReflectionFunction('is_file');
12    var_dump($rf->isDisabled());
13} catch (ReflectionException $e) {
14    echo $e->getMessage(), "\n";
15}
16
17$rf = new ReflectionFunction('is_string');
18var_dump($rf->isDisabled());
19?>
20--EXPECTF--
21Function is_file() does not exist
22
23Deprecated: Method ReflectionFunction::isDisabled() is deprecated in %s on line %d
24bool(false)
25