1--TEST--
2ReflectionFunction::getDocComment()
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->getDocComment());
28}
29
30dumpFuncInfo('foo');
31dumpFuncInfo('bar');
32dumpFuncInfo('extract');
33
34?>
35--EXPECTF--
36string(%d) "/**
37 * my doc comment
38 */"
39bool(false)
40bool(false)
41
42