Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11802 invoked by uid 1010); 24 Jun 2004 16:57:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11778 invoked from network); 24 Jun 2004 16:57:20 -0000 Received: from unknown (HELO mail3.panix.com) (166.84.1.74) by pb1.pair.com with SMTP; 24 Jun 2004 16:57:20 -0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id 4DFDA98241 for ; Thu, 24 Jun 2004 12:57:20 -0400 (EDT) Received: (from analysis@localhost) by panix5.panix.com (8.11.6p2-a/8.8.8/PanixN1.1) id i5OGvK511114 for internals@lists.php.net; Thu, 24 Jun 2004 12:57:20 -0400 (EDT) Date: Thu, 24 Jun 2004 12:57:20 -0400 To: PHP Internals List Message-ID: <20040624165720.GA8740@panix.com> References: <20040622164209.23239.qmail@pb1.pair.com> <5.1.0.14.2.20040622180046.02e53768@127.0.0.1> <20040622171622.64014.qmail@pb1.pair.com> <20040624014649.30099.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040624014649.30099.qmail@pb1.pair.com> User-Agent: Mutt/1.4.2.1i Subject: Re: [PHP-DEV] Bug 28879: Populating arrays with resources and objects as offsets From: danielc@analysisandsolutions.com (Daniel Convissor) Hi: On Thu, Jun 24, 2004 at 11:33:54AM +1000, Aidan Lister wrote: > > But since there's no BC need to allow resources in array initialization, > > then sure, leave it to the scripter to cast it to an int if that's REALLY > > what they want. (Again "why?" comes to mind). > > PEAR::DB uses this method - I'm seeing a million errors on sites that have > updated to latest CVS version. I've just updated PEAR DB in CVS to cast resources to int before use as array indexes. The change will be available in the 1.6.5 release, which should be out in the near future. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409