Edit report at http://bugs.php.net/bug.php?id=54626&edit=1
ID: 54626
Comment by: lrtherond at gmail dot com
Reported by: kjakobi at goodgamestudios dot com
Summary: Access to undeclared static property - But it exists
Status: Open
Type: Bug
Package: *General Issues
Operating System: Debian
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
Could you check if you can reproduce the problem with suhosin disabled?
------------------------------------------------------------------------
[2011-04-28 21:18:58] kjakobi at goodgamestudios dot com
$php -r "print_r(get_loaded_extensions());"
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => zlib
[7] => bcmath
[8] => bz2
[9] => calendar
[10] => ctype
[11] => dba
[12] => dom
[13] => hash
[14] => fileinfo
[15] => filter
[16] => ftp
[17] => gettext
[18] => SPL
[19] => iconv
[20] => json
[21] => mbstring
[22] => pcntl
[23] => session
[24] => posix
[25] => Reflection
[26] => standard
[27] => shmop
[28] => SimpleXML
[29] => soap
[30] => sockets
[31] => Phar
[32] => exif
[33] => sysvmsg
[34] => sysvsem
[35] => sysvshm
[36] => tokenizer
[37] => wddx
[38] => xml
[39] => xmlreader
[40] => xmlwriter
[41] => zip
[42] => curl
[43] => gd
[44] => imap
[45] => mcrypt
[46] => mysql
[47] => mysqli
[48] => PDO
[49] => pdo_mysql
[50] => suhosin
[51] => mhash
)
------------------------------------------------------------------------
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