note 11320 added to Classes and Objects
| From: | geekmeister at yahoo dot com | Date: | Thu, 15 Feb 2001 23:40:24 +0000 |
| Subject: | note 11320 added to Classes and Objects | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11125@lists.php.net to get a copy of this message | ||
I must be missing something, because I can't find any references in the documentation to two
items:
1. Class Destructors - this is called when an object goes out of scope or is deallocated.
2. How to cause a constructor to fail. For example, if I want to have a constructor function that
opens a file, but the fopen() command fails, I might want the constructor function to somehow return
NULL or 0 or something that would indicate that the construction of the object failed.
Any information on these two items? Thanks.
http://www.php.net/manual/en/language.oop.php