ID: 25323 User updated by: cunha17 at uol dot com dot br Reported By: cunha17 at uol dot com dot br Status: Open Bug Type: Zend Engine 2 problem Operating System: RedHat Linux 9.0 PHP Version: 5CVS-2003-08-30 (dev) New Comment:
Any information would be appreciated ... Previous Comments: ------------------------------------------------------------------------ [2003-08-30 14:21:48] cunha17 at uol dot com dot br Description: ------------ Is this suppose to work ? Currently it does not. class Priority { const DEBUG = 0; const INFO = 1; const WARN = 2; const ERROR = 3; const FATAL = 4; const MAX_PRIORITY = FATAL; } class ExtendedPriority extends Priority { const REMOTE = Priority::MAX_PRIORITY + 1; const URGENT = Priority::MAX_PRIORITY + 2; } if it's not supposed to work, there is some parser problem in ZE2 that accepts a constant expression based on string concatenation. Reproduce code: --------------- class test { const TEST = "hi"; const TEST1 = self::TEST . "ih"; } Expected result: ---------------- No parser error nor core dumps. Or a paser error if it's not supposed to work. Actual result: -------------- Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25323&edit=1