Re: Bug 28879: Populating arrays with resources and objects as offsets

From: Date: Thu, 24 Jun 2004 16:57:20 +0000
Subject: Re: Bug 28879: Populating arrays with resources and objects as offsets
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-10764@lists.php.net to get a copy of this message
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

« previous php.internals (#10764) next »