|
From: <php...@li...> - 2009-12-03 18:31:49
|
Hi,
> while (($n = $data->read($byteArray)) > 0) {
> I always got a : Maximum execution time of 60 seconds exceeded in ...
Yes, this is the correct behaviour. The above statement evaluates to an
endless loop.
$data->read(...) returns a java Integer object. Any object evaluates to
true, according to the PHP type conversion rules.
What you probably want is:
while (($n = java_values($data->read($byteArray))) > 0) {
...
Please see our API documentation at
http://php-java-bridge.sourceforge.net/pjb/docs/php-api/JavaBridge/_JavaProxy.inc.html#functionjava_valuesand
JAVA_PREFER_VALUES
http://php-java-bridge.sourceforge.net/pjb/docs/php-api/JavaBridge/_Options.inc.htmlfor
details.
Regards,
Jost Boekemeier
|