Re: Constants in class definitions
| From: | Adam Bregenzer | Date: | Tue, 24 Feb 2004 01:53:43 +0000 |
| Subject: | Re: Constants in class definitions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178626@lists.php.net to get a copy of this message | ||
On Tue, 2004-02-24 at 09:26, Toro Hill wrote:
> Here's the situation:
> PHP 4.3.4
> Apache 1.3.29
> MMCache 2.4.6
>
> I'm ending up with some garbage in certain class variables.
> The code runs fine without MMCache disabled.
> There seems to be a very specific circumstances under which the error occurs.
> Namely:
> 1. The constants must be defined in a seperate file.
> 2. The member array ($stuff, refer below) must be populated in the class definition, not the
> class constructor
> 3. index.php can't be modified after apache has been started. If I touch index.php then
> the problem disappears, but then if I restart apache the problem reappears.
>
> If you want to see the output of the script go to
> http://outreach.net.nz/test/
Wow, looks like a bug to me, good find!
--
Adam Bregenzer
adam@bregenzer.net
http://adam.bregenzer.net/