Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23046 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96755 invoked by uid 1010); 30 Apr 2006 05:16:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96739 invoked from network); 30 Apr 2006 05:16:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2006 05:16:07 -0000 X-PHP-List-Original-Sender: bfoz@bfoz.net X-Host-Fingerprint: 204.127.200.84 sccrmhc14.comcast.net NetCache Data OnTap 5.x Received: from ([204.127.200.84:63801] helo=sccrmhc14.comcast.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7C/01-18514-71844544 for ; Sun, 30 Apr 2006 01:16:07 -0400 Received: from [192.168.0.5] (c-24-6-134-233.hsd1.ca.comcast.net[24.6.134.233]) by comcast.net (sccrmhc14) with ESMTP id <20060430051540014001t1kce>; Sun, 30 Apr 2006 05:15:40 +0000 Message-ID: <445447FB.5060306@bfoz.net> Date: Sat, 29 Apr 2006 22:15:39 -0700 User-Agent: Thunderbird 1.5 (X11/20060401) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: resources vs objects? From: bfoz@bfoz.net (Brandon Fosdick) From the point of view of an extension, what's the difference between a resource and an object? Is there any reason to favor one over the other? sqlite seems to use resources for the procedural interface and objects otherwise. Whereas mysqli uses objects all around in user space, but then maps them to resources in the background. Why use objects only to map them to resources? Are resources somehow special?