Re: Structures_DataGrid BC issue

From: Date: Tue, 09 May 2006 17:18:27 +0000
Subject: Re: Structures_DataGrid BC issue
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24026@lists.php.net to get a copy of this message
PitesaJ@peteramayer.com wrote: > I am currenty using Structures_DataGrid-0.5.3 in numerous scripts. > Yesterday I upgraded to 0.6.3 and although I received no error, the > DataGrid did not work. [...] > For 0.6.3 it states: > > // Define New DataGrid with a limit of 3 records > $dg =& new Structures_DataGrid(4); Hmm, these numbers are misleading. Either a 3 needs to be a 4 or the other way round. Where did you found this? > The only difference being the &, which when added to existing script, works > correctly. > > Question. Am I missing something else, or am I going to have to change > this in all of my scripts (which is a lot) ? If you work with PHP 4, you'll have to change this. But if you've always used $dg = Structures_DataGrid..., this should be an automatable task. If you work with PHP 5, there is no need to change this. Please be aware that there will be two BC breaks with the next release, more info can be found here: http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/package2.xml?view=markup&rev=1.3 (in the notes section of the XML file) Regards, Mark

« previous php.pear.general (#24026) next »