Bug #54626 [Opn->Bgs]: Access to undeclared static property - But it exists
| From: | cataphract@php.net | Date: | Tue, 03 May 2011 10:31:31 +0000 |
| Subject: | Bug #54626 [Opn->Bgs]: Access to undeclared static property - But it exists | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160525@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54626&edit=1
ID: 54626
Updated by: cataphract@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] rasmus@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