Re: Constant Classes
| From: | fabwash | Date: | Sun, 14 Apr 2002 14:38:05 +0000 |
| Subject: | Re: Constant Classes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82783@lists.php.net to get a copy of this message | ||
Definitely a copy if you're drunk after all those beers..
(sorry couldn't resist)
Fab.
----- Original Message -----
From: "medvitz" <medvitz@medvitz.net>
To: <php-dev@lists.php.net>
Sent: Sunday, April 14, 2002 10:33 AM
Subject: [PHP-DEV] Constant Classes
>
>
> This may have been addressed already but:
>
> If I have the following code:
>
> class Beer
> {
> ...
> }
>
> $a = new Beer();
>
> define('BaseBeer', $a);
>
> $b = BaseBeer;
>
>
> Will $a & $b be the same object or will $b be a copy. (Under ZE2).
>
>
> Thx.
>
> Medvitz
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>