|
From: <php...@li...> - 2010-06-25 20:47:03
|
I have recently updated my installation of the JavaBridge and I'm seeing
some very strange behavior in my PHP scripts that are using the bridge. I'm
hoping that someone else has run into this and can give me a quick answer as
to what I can do to fix the issue.
The problem is with PHP scripts that are being run from the command line
that are using the bridge and taking more than 30s to execute. When the
script gets to the point where it should exit it just hangs. Below I've
included the source code of a very simple script that I've created to
reproduce the issue. When I comment out the line to create the String
object the script runs as expected.
I'm stumped, I've tried many combinations of ideas and nothing seems to fix
the problem. Any help will be appreciated.
Thanks,
Brian
#!/usr/bin/php
<?php
require_once 'http://192.168.0.198:8080/JavaBridge/java/Java.inc';
$jString = new Java("java.lang.String", "test");
echo "start sleep\n";
sleep(30);
echo "sleep finished\n";
echo "start exit\n";
exit(0);
echo "exit finished\n";
?>
|