Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty
| From: | Andrew Nagy | Date: | Tue, 15 Feb 2005 14:43:12 +0000 |
| Subject: | Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17533@lists.php.net to get a copy of this message | ||
Daniel García wrote:
Then, since PHP4 returns the result of the 'new' operator by value, I changed the example to $dg =& new Structures_DataGrid(4); instead of $dg = new Structures_DataGrid(4); And it worked :-). I guess the examples should be updated accordingly. Thanks for your replies, and kind regards. -- DanielWere you looking at the examples in the CVS? They were updated 2 months ago to match the new code. It is also mentioned throughout the documentation. Let me know if you have any ideas as to how to make this more obvious since this help question comes up somewhat often. You must instantiate SDG as a reference in PHP4, this does not apply however for PHP5. Andrew