Newsgroups: php.general,php.internals Path: news.php.net Xref: news.php.net php.general:209443 php.internals:15195 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76672 invoked by uid 1010); 25 Feb 2005 22:36:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76551 invoked from network); 25 Feb 2005 22:36:40 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 25 Feb 2005 22:36:40 -0000 X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:2402] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id A0/4D-51537-18F8F124 for ; Fri, 25 Feb 2005 15:50:12 -0500 Received: (qmail 76378 invoked by uid 1001); 25 Feb 2005 20:50:02 -0000 Received: from 66.99.91.45 (SquirrelMail authenticated user ceo@l-i-e.com); by www.l-i-e.com with HTTP; Fri, 25 Feb 2005 12:50:02 -0800 (PST) Message-ID: <2607.66.99.91.45.1109364602.squirrel@www.l-i-e.com> In-Reply-To: <002801c51ad8$7f2a8bc0$71f69d44@setechusa.com> References: <002801c51ad8$7f2a8bc0$71f69d44@setechusa.com> Date: Fri, 25 Feb 2005 12:50:02 -0800 (PST) To: "Chris Cranford" Cc: internals@lists.php.net, php-general@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP] PHP Extensions & Pass-By-Reference From: ceo@l-i-e.com ("Richard Lynch") Chris Cranford wrote: > I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to > pass variables by reference to my function without enabling call-time pass > by reference in the PHP.INI file? I think the definition in the C syntax of PHP_FUNCTION will do that for you. You'll probably need to use some ZEND_xxx macro. Check out simple functions (error_log springs to mind) that use pass by reference. -- Like Music? http://l-i-e.com/artists.htm