Bug #63614 [Opn->Csd]: Fatal error on Reflection
| From: | laruence@php.net | Date: | Tue, 27 Nov 2012 05:34:40 +0000 |
| Subject: | Bug #63614 [Opn->Csd]: Fatal error on Reflection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174954@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63614&edit=1
ID: 63614
Updated by: laruence@php.net
Reported by: dev at pp3345 dot de
Summary: Fatal error on Reflection
-Status: Open
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: Debian Squeeze
PHP Version: 5.3.19
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=df3b9a1e0791803b1d9f9300d8f36dd981126bc7
Log: Fixed Bug #63614 (Fatal error on Reflection)
Previous Comments:
------------------------------------------------------------------------
[2012-11-26 20:33:08] dev at pp3345 dot de
Description:
------------
Test script leads to a fatal error. Seems to happen with both PHP 5.3 and 5.4.
Test script:
---------------
<?php
class Test
{
const A = 0;
public function func()
{
static $a = array(
self::A => 'a'
);
}
}
$reflect = new ReflectionMethod('Test', 'func');
$reflect->getStaticVariables();
?>
Expected result:
----------------
No Fatal Error.
Actual result:
--------------
Fatal error: Cannot access self:: when no class scope is active in test.php on
line 16
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63614&edit=1