|
From: <php...@li...> - 2010-06-26 04:51:46
|
I had a hanging problem but at the same time my script was not working. It
was because my I hadn't installed JavaBridge and PHP correctly. I just
re-installed both, and I didn't have the problem anymore.
It could also be something with the exit function, but I don't know
JavaBridge well enough to comment what exactly.
Sincerely,
Sravan Suryadevara
On Sat, Jun 26, 2010 at 1:45 AM, <
php...@li...> wrote:
> 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";
>
> ?>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|