|
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
|