1--TEST--
2ReflectionFunction::getFileName()
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8
9/**
10 * my doc comment
11 */
12function foo () {
13	static $c;
14	static $a = 1;
15	static $b = "hello";
16	$d = 5;
17}
18
19/***
20 * not a doc comment
21 */
22function bar () {}
23
24
25function dumpFuncInfo($name) {
26	$funcInfo = new ReflectionFunction($name);
27	var_dump($funcInfo->getFileName());
28}
29
30dumpFuncInfo('foo');
31dumpFuncInfo('bar');
32dumpFuncInfo('extract');
33
34?>
35--EXPECTF--
36string(%d) "%sReflectionFunction_getFileName.002.php"
37string(%d) "%sReflectionFunction_getFileName.002.php"
38bool(false)
39
40