Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23599 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85327 invoked by uid 1010); 20 May 2006 23:48:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85312 invoked from network); 20 May 2006 23:48:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2006 23:48:42 -0000 X-PHP-List-Original-Sender: gareth@fission.org.uk X-Host-Fingerprint: 81.103.221.49 mta09-winn.ispmail.ntl.com Solaris 8 (1) Received: from ([81.103.221.49:40264] helo=mtaout03-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 95/65-19568-9DAAF644 for ; Sat, 20 May 2006 19:48:42 -0400 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20060520234838.CNQK27969.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Sun, 21 May 2006 00:48:38 +0100 Received: from [192.168.0.20] (really [86.2.124.185]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20060520234837.OYZQ16086.aamtaout04-winn.ispmail.ntl.com@[192.168.0.20]> for ; Sun, 21 May 2006 00:48:37 +0100 Message-ID: <446FAAD6.3020209@fission.org.uk> Date: Sun, 21 May 2006 00:48:38 +0100 User-Agent: Thunderbird 1.5 (X11/20060309) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: help with zend objects and resources From: gareth@fission.org.uk (Gareth Ardron) Hi I'm having problems with an extension I'm writing atm - basically, I want to do the following in php: $foo = myclass; $foo->load("somefile"); $foo->save("somefile"); Now, I can form the load() method correctly within the module but can't find any documentation on how to make the resource that it returns persistent so that the save() method can access it. I'm probably being really dumb here, but I've been staring at the screen for a few hours and going slightly mad. If anybody can point me at the relevant docs or just tell me how to do it, brilliant. Cheers -- Gareth Ardron