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