Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65365 invoked by uid 1010); 20 Nov 2005 17:56:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65350 invoked from network); 20 Nov 2005 17:56:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2005 17:56:08 -0000 X-Host-Fingerprint: 198.237.84.92 unknown Linux 2.4/2.6 Received: from ([198.237.84.92:1617] helo=bobsilva.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id DD/76-11378-5B8B0834 for ; Sun, 20 Nov 2005 12:56:06 -0500 Received: from [198.237.84.93] (HELO jake) by bobsilva.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 680787 for internals@lists.php.net; Sun, 20 Nov 2005 06:35:42 -0800 To: "'internals'" Date: Sun, 20 Nov 2005 09:55:49 -0800 Message-ID: <000001c5edfb$a3d88f20$5d54edc6@jake> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C5EDB8.95B54F20" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcXt+6POLgR0Ci2ZTN+tHsfsbYXlrg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Help with object creation From: me@bobsilva.com ("Bob Silva") ------=_NextPart_000_0001_01C5EDB8.95B54F20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0001_01C5EDB8.95B54F20--