Re: PHP 4.0 Bug #8141 Updated: "define" as array index in class definition is ignored
| From: | Lars Torben Wilson | Date: | Thu, 07 Dec 2000 17:39:33 +0000 |
| Subject: | Re: PHP 4.0 Bug #8141 Updated: "define" as array index in class definition is ignored | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40332@lists.php.net to get a copy of this message | ||
Stanislav Malyshev writes:
> 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.
Yup.
> 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.
I'll take your word for that one. :)
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+