PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid » Bug #4350

Structures_DataGrid_Renderer_XML constructor needs variable by reference

Details

Submitted2005-05-15 16:41 UTC
Fromtier at gregor-widuch dot de
Assignedasnagy
StatusClosed
PackageStructures_DataGrid
PHP Version4.3.8
Roadmaps(Not assigned)

Comments

[2005-05-15 16:41 UTC] tier at gregor-widuch dot de

Description:
------------
The sample "example-xml.php" only returns

<?xml version="1.0"?>
<DataGrid>
</DataGrid>

I think I found the reason:
In file Structures/DataGrid/Renderer/XML.php the constructor is buggy. The variable $dg is not passed by reference. When I change this the sample works.

function Structures_DataGrid_Renderer_XML(&$dg)
{
$this->_dg =& $dg;
}