Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16183 invoked by uid 1010); 28 Sep 2004 02:14:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14247 invoked from network); 28 Sep 2004 02:14:12 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 28 Sep 2004 02:14:12 -0000 Received: (qmail 21820 invoked from network); 28 Sep 2004 02:14:11 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 28 Sep 2004 02:14:11 -0000 Message-ID: <5.1.0.14.2.20040927191328.04a3e890@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 27 Sep 2004 19:14:09 -0700 To: "Robert Silva" , In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] ZEND_BEGIN_ARG_INFO From: andi@zend.com (Andi Gutmans) References: Actually objects should usually not be passed by reference. You want the handle to be passed by value (you will still me manipulating the original copy of the object). Only if you want to change the handle, i.e. object instance, do you want to pass by reference. Andi At 12:20 PM 9/25/2004 -0700, Robert Silva wrote: >When defining class methods that take object parameters using >ZEND_BEGIN_ARG_INFO and ZEND_ARG_OBJ_INFO, do you have to define it as >pass_by_ref or does the engine implictly know to pass them by ref. > >Im assuming the pass_by_ref flag is more for backcompat reasons. > >Thanks > >Bob > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php