1--TEST--
2function_exists function : basic functionality
3--FILE--
4<?php
5/*
6 * Function is implemented in Zend/zend_builtin_functions.c
7*/
8
9echo "*** Testing function_exists() : basic functionality ***\n";
10
11echo "Internal function: ";
12var_dump(function_exists('function_exists'));
13
14echo "User defined function: ";
15function f() {}
16var_dump(function_exists('f'));
17
18echo "Case sensitivity: ";
19var_dump(function_exists('F'));
20
21echo "Non existent function: ";
22var_dump(function_exists('g'));
23
24echo "Method: ";
25Class C {
26    static function f() {}
27}
28var_dump(function_exists('C::f'));
29?>
30--EXPECT--
31*** Testing function_exists() : basic functionality ***
32Internal function: bool(true)
33User defined function: bool(true)
34Case sensitivity: bool(true)
35Non existent function: bool(false)
36Method: bool(false)
37