Edit report at http://bugs.php.net/bug.php?id=54626&edit=1
ID: 54626 Updated by: cataphr...@php.net Reported by: kjakobi at goodgamestudios dot com Summary: Access to undeclared static property - But it exists -Status: Open +Status: Bogus Type: Bug Package: *General Issues Operating System: Debian PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Closing as bogus. Previous Comments: ------------------------------------------------------------------------ [2011-05-01 01:07:23] lrtherond at gmail dot com I take back my report. It was user error in my case. Code on the server was not in synch with local repository. My bad, sorry. ------------------------------------------------------------------------ [2011-05-01 00:26:01] lrtherond at gmail dot com I see this as well, for me it happens all the time... I have this code: --- namespace SquadMixer; use Glint\CommonMagic\DataFormatter as DataFormatter; use Glint\CommonMagic\Debugging as Debugging; use Glint\CommonMagic\GlintException as GlintException; //{{{ Registrar class Registrar extends ModelEntity { private static $REGISTRATION = 0; private static $UPDATE = 1; private static $PASSWORD_REQUEST = 2; ... --- self::$REGISTRATION and self::$UPDATE always work. self::$PASSWORD_REQUEST always fail with: PHP Fatal error: Access to undeclared static property: SquadMixer\\Registrar::$PASSWORD_REQUEST Strangest thing ever... ------------------------------------------------------------------------ [2011-04-28 23:12:44] kjakobi at goodgamestudios dot com Just found out it happens only when using namespaces. Without the namespace I didn't get the error. Also I can say the error occurs ones on ~1000 calls on the file. Really strange. ------------------------------------------------------------------------ [2011-04-28 21:31:40] kjakobi at goodgamestudios dot com Yes, tomorrow. But the same code ran fine on 5.3.5 on the same machine. ------------------------------------------------------------------------ [2011-04-28 21:23:57] ras...@php.net Could you check if you can reproduce the problem with suhosin disabled? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=54626 -- Edit this bug report at http://bugs.php.net/bug.php?id=54626&edit=1