|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-03 13:10 UTC] cataphract@php.net
-Summary: ReflectionClass::getConstants crashes on
selfreferencing constants.
+Summary: ReflectionClass::getConstants emits fatal
error on selfreferencing constants.
-Assigned To:
+Assigned To: cataphract
[2011-02-03 13:38 UTC] cataphract@php.net
[2011-02-03 13:45 UTC] cataphract@php.net
[2011-02-03 13:45 UTC] cataphract@php.net
-Status: Assigned
+Status: Closed
[2011-02-03 13:45 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 04:00:01 2025 UTC |
Description: ------------ This code throws fatal error: Cannot access self:: when no class scope is active Test script: --------------- class Foo { const A = 1; const B = self::A; } $rc = new ReflectionClass('Foo'); $rc->getConstants(); // crashes