|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-07 06:46 UTC] schmittjoh at gmail dot com
Description: ------------ In some cases, the ReflectionClass::getDocComment() method returns a doc comment that belongs to another class than the one the ReflectionClass represents. I haven't been able to reproduce in a isolated script, but instead I have added a failing unit test to Doctrine's unit test suite, see https://github.com/schmittjoh/common/commit/2d77264758ddd9658791b4284a9492a38bb1b049 You can run this test, by performing the following steps: git clone http://github.com/schmittjoh/common.git cd common git checkout strangePhpError phpunit Test script: --------------- see above PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
I also have such problem while using Doctrine2 My environment: Ubuntu 11.10 PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 02:17:16) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans I have fixed it by adding an empty doc block to a class Doctrine complains to.