Re: problems and segmentation fault with constants in PHP5
| From: | Cristiano Duarte | Date: | Sat, 13 Sep 2003 12:20:51 +0000 |
| Subject: | Re: problems and segmentation fault with constants in PHP5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162494@lists.php.net to get a copy of this message | ||
I reported this BUG at php.bugs as http://bugs.php.net/?id=25323.
It's there for 13 days now and still no answer... :-(
Cristiano Duarte
"Cristiano Duarte" <cunha17@uol.com.br> escreveu na mensagem
news:20030912235353.24521.qmail@pb1.pair.com...
> 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 also some parser problem in ZE2
that
> accepts a constant expression based on string concatenation(This code
causes
> segmentation fault):
>
> class test {
> const TEST = "hi";
> const TEST1 = self::TEST . "ih";
> }
>
> Cristiano Duarte