#20853 [Opn]: getting objectarray with 90 or more objects back from java produces a crash
| From: | andreas at billmann dot de | Date: | Fri, 06 Dec 2002 10:44:57 +0000 |
| Subject: | #20853 [Opn]: getting objectarray with 90 or more objects back from java produces a crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26835@lists.php.net to get a copy of this message | ||
ID: 20853
User updated by: andreas@billmann.de
Reported By: andreas@billmann.de
Status: Open
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.2.3
New Comment:
I'm sorry,
my the example works now fine, but with a more complex class (FileInfo
extends java.io.File and implements Serializable) it fails with an
array of the size 15.
I don't have added the logs this time, so I don' t know if this is the
same error or not, but I can't test this until monday, so I update this
on monday.
Thx for your help and have a nice weekend.
Regards,
Andi
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 04:38:13] andreas@billmann.de
Ok, now the values are about 190.000 for the object array
that is a value I can live with and 200 (it works for 199 and crashes
with 200) for the string array. So when I need a big array with strings
I wrap them in an object.
Thx for your help.
Andi
PS: I have jdk 1.4.1 on a P4 1500 with 768MB and Suse Linux 8.1
------------------------------------------------------------------------
[2002-12-06 04:16:33] edink@php.net
I've tried it now with 50.000 and it worked. It took about 3.6 seconds
on my P3 600.
------------------------------------------------------------------------
[2002-12-06 04:01:05] andreas@billmann.de
You have seen the comments that it crashes with the value of 90 and
131? And have you tried it with values higher between 10.000 and
50.000? This is the range I need, because I have to
show a directory of a terabyte hd where all the files are in one
directory.
I'm currently downloading the latest php and try it on my own. I will
post the resutlts here again.
Thx,
Andi
------------------------------------------------------------------------
[2002-12-06 03:37:00] edink@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
I've just tried your example and it worked fine (using Sun's JDK
1.3.1).
------------------------------------------------------------------------
[2002-12-06 03:24:45] andreas@billmann.de
there was not enough space for the rest of the code, so I add it here:
package de.slab.php2java;
public class SecondClass
{
private String name;
public SecondClass(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
}
test.php
------------------------
<html>
<body>
<?php
$php2Java = new Java('de.slab.php2java.Php2Java');
// next line crashes with size of 90
$arr = $php2Java->getSecondClassArray( 89 );
// next line crashes with size of 131
$arr = $php2Java->getStrings( 130 );
?>
</body>
</html>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20853
--
Edit this bug report at http://bugs.php.net/?id=20853&edit=1