|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-15 20:04 UTC] lphuberdeau at phpquebec dot org
[2003-10-16 00:04 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 03:00:01 2025 UTC |
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