#28900 [Opn->Bgs]: class constants not working
| From: | curt@php.net | Date: | Fri, 25 Jun 2004 03:51:34 +0000 |
| Subject: | #28900 [Opn->Bgs]: class constants not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61342@lists.php.net to get a copy of this message | ||
ID: 28900
Updated by: curt@php.net
Reported By: misu200 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Windows XP
PHP Version: 5.0.0RC3
New Comment:
echo self::KKR;
Previous Comments:
------------------------------------------------------------------------
[2004-06-23 22:42:27] misu200 at yahoo dot com
Description:
------------
class constants not working
Reproduce code:
---------------
<?php
class aga{
const XKR=1;
function __construct()
{
echo XKR;
}
}
$aa = new aga();
?>
Expected result:
----------------
1
Actual result:
--------------
XKR
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28900&edit=1