ireport

I just tried to implement the jasperXML library to use SC with ireports.

I get the following errormessage:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PHPJasperXML has a deprecated constructor in /Applications/Scriptcase/v9/wwwroot/scriptcase/app/dbREP_WEBapp/ireport/class/PHPJasperXML.inc.php on line 4

line 4 in the errormessage is the start of the class
1 <?php
2
3 //version 0.9d
4 class PHPJasperXML {

I wonder if i’m doing something wrong? Or maybe this library is no longer compatible with SC.

Any suggestions on this?

other code i use
index.php:
<?php
session_start();

include_once(‘class/tcpdf/tcpdf.php’);
include_once(‘class/PHPJasperXML.inc.php’);

$xml = simplexml_load_file($_SESSION[‘report’][‘xml_file’]); //variable for jrxml file

$PHPJasperXML = new PHPJasperXML();

$PHPJasperXML->arrayParameter=array(‘pdf_query’=>$_SESSION[‘report’][‘pdf_query’]); //variable for sql statement
$PHPJasperXML->xml_dismantle($xml);

$PHPJasperXML->transferDBtoArray($_SESSION[‘report’][‘host’],
$_SESSION[‘report’][‘user’],
$_SESSION[‘report’][‘pass’],
$_SESSION[‘report’][‘db’]);
$PHPJasperXML->outpage(“I”); //page output method I:standard output Download file
?>