Re: [PHP] Lifetime
[email protected] (shiplu)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CADO5mDDgg4tufv8T+v1Us8MVbbuq9ez8OrZyDqwcAv6QTuwGnw@mail.gmail.com> |
Constants are available as long as the PHP process is executing. Destructors are called before a class instance is being wiped out from memory. But it does not remove a class or undefine a class. It works with instance. So a class constant never gets undefined. It stays with class definition.