Help with object creation
| From: | Bob Silva | Date: | Sun, 20 Nov 2005 17:55:49 +0000 |
| Subject: | Help with object creation | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-20199@lists.php.net to get a copy of this message | ||
Looking through the source, there are a few extensions which create objects
internally and when they do this (usually with an instanciate method), they
typically set is_ref == 1. Like so:
object_init_ex(object, class_entry);
object->refcount = 1;
object->is_ref = 1;
Why set the is_ref? Aren't objects treated as is_ref natively throughout the
engine? Or is this just old code from PHP 4 days that is still hanging
around?
Thanks for the understanding.
Bob Silva