PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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;
}