Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12569 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80105 invoked by uid 1010); 3 Sep 2004 21:03:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80073 invoked from network); 3 Sep 2004 21:03:45 -0000 Received: from unknown (HELO mail.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 3 Sep 2004 21:03:45 -0000 Received: from ([66.80.117.2:53145]) by mail.omniti.com (ecelerity 1.2.1-dev) with SMTP id 10/00-22145-23CD8314; Fri, 03 Sep 2004 17:03:49 -0400 In-Reply-To: <20040903183410.90659.qmail@pb1.pair.com> References: <20040903145458.68064.qmail@pb1.pair.com> <1094229635.17236.16.camel@unix-101-34.hq.communityconnect.com> <20040903183410.90659.qmail@pb1.pair.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Message-ID: Content-Transfer-Encoding: quoted-printable Cc: George Schlossnagle , internals@lists.php.net Date: Fri, 3 Sep 2004 17:03:04 -0400 To: Jan Gerritsen X-Mailer: Apple Mail (2.619) Subject: Re: [PHP-DEV] Writeing OO exteions for PHP 4.3 From: george@omniti.com (George Schlossnagle) On Sep 3, 2004, at 2:33 PM, Jan Gerritsen wrote: > Hi, > >> If I understand you correctly you can put this pointer inside of a >> resource container and return the resource container to user space as >> the return value from url_init(). Then, from url_set_string() you=20 >> accept >> the resource as a parameter and extract the pointer to your CPP=20 >> instance >> of whatever class. > > Tanks for your response, but your solution do not work for me, because=20= > I don=92t get the resource_id as parameter for calls to the object.=20 > ($php_url_object->set_string(=93asdf=94); ) > I now save the C++ Object pointer in a resource and save this resource=20= > as an attribute of the PHP object. This is a typical strategy for php4 oo stuff. George