-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/Zend/tests/
File Upload :
Current File : //usr/src/php/Zend/tests/bug50174.phpt

--TEST--
Bug #50174 (Incorrectly matched docComment)
--SKIPIF--
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
--FILE--
<?php

class TestClass
{
	/** const comment */
	const C = 0;

	function x() {}
}

$rm = new ReflectionMethod('TestClass', 'x');
var_dump($rm->getDocComment());

class TestClass2
{
	/** const comment */
	const C = 0;

	public $x;
}

$rp = new ReflectionProperty('TestClass2', 'x');
var_dump($rp->getDocComment());

?>
--EXPECT--
bool(false)
bool(false)

Copyright © 2017 || Recoded By Mr.Bumblebee