You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
|
|
2
(1) |
3
(1) |
4
|
5
(2) |
6
(2) |
7
(3) |
8
(1) |
|
9
|
10
|
11
|
12
(4) |
13
(10) |
14
(5) |
15
(2) |
|
16
|
17
|
18
(12) |
19
|
20
|
21
|
22
(1) |
|
23
(1) |
24
(10) |
25
(3) |
26
(5) |
27
|
28
|
29
|
|
30
(3) |
|
|
|
|
|
|
|
From: <php...@li...> - 2008-11-12 21:46:38
|
Hi,
A PHP script cannot run for more than 30 seconds. However, this isn't a
> problem because all relevant information is stored in the Java backend. For
> example:
>
> jrunscript -classpath JavaBridge.jar -l php-interactive
> php-interactive> $vec = new java("java.lang.Vector"); $vec->add(1);
> php-interactive> echo $vec
> [1]
> php-interactive> die();
> ScriptError: Request$AbortException
> php-interactive> echo $vec
> [1]
>
> The above example shows that, even though the PHP continuation has been
> restarted, the script state isn't lost.
Could you provide me with a Java code example for this. I have already at
startup
(note: globally declared manager, engine, and invocable)
manager = new javax.script.ScriptEngineManager();
e = manager.getEngineByName("php-invocable");
// read php script
java.io.File sourceFile = new java.io.File(mycode.php);
java.io.FileReader fr = new java.io.FileReader(sourceFile);
e.eval(fr);
i = (javax.script.Invocable) e;
>From what you said I gather that after 30 seconds 'i' can no longer be used.
What java code do i put then to restart the PHP continuation with the
preserved state?
Thanks,
Bart
> Regards,
> Jost Boekemeier
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
The new is always the old. Everything that's old was once new, and
everything that's new will one day be old. The oldest thing of all is the
present, because there's never been anything else but the present. No one
has ever lived in the past, and no one lives in the future, either.
|
|
From: <php...@li...> - 2008-11-12 20:55:25
|
Jost,
I am using the bridge to execute queries on a backend database from PHP.
If I am following what you are saying, then if I run a query that takes
longer than 30 seconds on the backend database server, the PHP process on
the server will die before the result set is returned. But it doesn't
matter because when the bridge returns the result set, the PHP process
will restart and remember it's state?
If so, when is the allocated memory reclaimed? If not, will I have a
problem if I ever run a query that takes longer than 30 seconds?
>> jrunscript -classpath JavaBridge.jar -l php-interactive
>> php-interactive> $vec = new java("java.lang.Vector"); $vec->add(1);
>> php-interactive> echo $vec
>> [1]
>> php-interactive> die();
>> ScriptError: Request$AbortException
>> php-interactive> echo $vec
>> [1]
>> The above example shows that, even though the PHP continuation has been
restarted, the script state isn't lost.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
|
|
From: <php...@li...> - 2008-11-12 19:45:42
|
Hi,
PHP is a scripting language designed for web applications. It isn't really usable outside of the web environment.
It uses reference counting. It can reclaim objects immediately but fails to detect cycles, something which is very useful for web applications. But its missing garbage collector is problematic in a standalone environment.
All PHP libraries have been written with this "restriction" in mind; in fact the "no state" paradigm isn't really a restriction, it is a key feature of PHP.
> php.java.bridge.Request$AbortException
This is a so-called "one-shot continuation", implemented as a special Java exception. It is called when the PHP script has terminated, either explicitly or by its timer.
> What could be the cause of this error?
That's PHP's normal behaviour. If you increase its timeout you will run into the next timeout from the HTTP server. And even if you increase the HTTP server's timeout, the client browser (IE, Firefox) will disconnect after ~30 seconds.
> I am initializing the scripting engine and invocable only
> once, when starting my program.
A PHP script cannot run for more than 30 seconds. However, this isn't a problem because all relevant information is stored in the Java backend. For example:
jrunscript -classpath JavaBridge.jar -l php-interactive
php-interactive> $vec = new java("java.lang.Vector"); $vec->add(1);
php-interactive> echo $vec
[1]
php-interactive> die();
ScriptError: Request$AbortException
php-interactive> echo $vec
[1]
The above example shows that, even though the PHP continuation has been restarted, the script state isn't lost.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-11-12 18:00:38
|
Hi,
I was hoping someone could help me with the following:
I'm calling php code on php objects from java using java_closure to create
the dynamic proxies. Most of the time things work smoothly, but from time to
time I get the following error:
php.java.bridge.Request$AbortException
at php.java.bridge.Request.handleSubRequests(Request.java:611)
at php.java.bridge.PhpProcedure.invoke(PhpProcedure.java:82)
at php.java.bridge.PhpProcedure.invoke(PhpProcedure.java:106)
Maximum execution time of 60 seconds exceeded in <b>
http://127.0.0.1:9267/JavaBridge/java/Java.inc</b> on line <b>841</b><br />
What could be the cause of this error? It occurs when I for example do the
following:
call invokeMethod on a proxy object
wait for a while (assumingly passed the maximum execution time)
call invokeMethod again
I am initializing the scripting engine and invocable only once, when
starting my program. Does the invocable need to be refreshed in between or
something like that? I can increase the execution time in php.ini, but since
my program is user driven and the user can decide to wait long periods
before doing something (leading to an invokeMethod call), this would not
really be a nice solution.
Thanks for any help,
Bart
|