Re: Structures_DataGrid BC issue
| From: | PitesaJ at peteramayer dot com | Date: | Tue, 09 May 2006 17:41:13 +0000 |
| Subject: | Re: Structures_DataGrid BC issue | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24028@lists.php.net to get a copy of this message | ||
>Hmm, these numbers are misleading. Either a 3 needs to be a 4 or the other
way round. Where did you found this?
Both snippets are copied from the respective Docs/Examples/example.php file
I am running PHP4, so I will change scripts. Thanks to you and Justin for
quick reply.
Mark Wiesemann
<wiesemann@php.ne
t> To
pear-general@lists.php.net
05/09/2006 12:18 cc
PM
Subject
Re: [PEAR]Structures_DataGrid BC
issue
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
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php