|
From: <php...@li...> - 2007-07-25 19:52:44
|
Hi guys, I'm having problems with a List object.
I have the following code:
<?php
$mAnnouncements =3D array (
'Welcome.wav',
'CPAA.wav',
);
print("Array: <br />");
print_r($mAnnouncements);
print("<br />Creating List Object...<br />");
$oList =3D new java('java.util.List');
foreach ($mAnnouncements as $ann)
{
$oList->add($ann);
}
print("List: <br />");
print_r($oList);
print("<br />");
for ($i =3D 0; $i < $oList->size(); $i++)
{
print("Value:" . $oList->get($i) . "<br />");
}
?>
When I run it I get this output:
Array:
Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav )
Creating List Object...
And it just dies there. No error on the output nor on the logs.
I'm using php/java bridge on that box withoud any problems, working with my
own java classes, but when I need to create this List object I get this
problem.
Any ideas? Do I need to require any file with java_require?
Thanks in advance
Andr=E9s Gattinoni
|