Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11848 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93440 invoked by uid 1010); 3 Aug 2004 03:23:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93356 invoked from network); 3 Aug 2004 03:23:30 -0000 Received: from unknown (HELO hotmail.com) (64.4.11.25) by pb1.pair.com with SMTP; 3 Aug 2004 03:23:30 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 2 Aug 2004 20:23:29 -0700 Received: from 61.144.220.59 by by7fd.bay7.hotmail.msn.com with HTTP; Tue, 03 Aug 2004 03:23:29 GMT X-Originating-IP: [61.144.220.59] X-Originating-Email: [xuefer@hotmail.com] X-Sender: xuefer@hotmail.com To: internals@lists.php.net Bcc: Date: Tue, 03 Aug 2004 11:23:29 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 03 Aug 2004 03:23:29.0668 (UTC) FILETIME=[3F49BC40:01C47909] Subject: how to return a copy of arguments but using CopyOnWrite scheme? From: xuefer@hotmail.com ("tinys xuefer") i'm truying to write a ext for php, personal usage in some case, my function modify the value and return for performance issue, i'd like to use CopyOnWrite scheme for the case returning without modify but how? _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail