Re: PHP 4.0 Bug #8141 Updated: "define" as array index in class definition is ignored
| From: | Stanislav Malyshev | Date: | Thu, 07 Dec 2000 09:31:46 +0000 |
| Subject: | Re: PHP 4.0 Bug #8141 Updated: "define" as array index in class definition is ignored | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40329@lists.php.net to get a copy of this message | ||
LTW>> Yeah, after a couple of offlist emails, I figured that this would be
LTW>> something that could use an error message. If what I gleaned after a
LTW>> closer look is correct, then the problem is that the value of the
LTW>> named constant, in this case 'ABC', cannot presently be known at
LTW>> compile time, as is apparently required by the class initializer bit
LTW>> in zend_language_parser.y.
Yes, so it should give parse error then.
LTW>> I was thinking about reclassifying this as a Feature Request for such
LTW>> an error message. As it is, it's a tough problem to track down.
It has a memory leak, so it's a clear bug somewhere.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106