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