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) |
2
|
3
(3) |
4
|
5
|
|
6
|
7
(3) |
8
(3) |
9
|
10
(2) |
11
(2) |
12
|
|
13
|
14
(2) |
15
|
16
(1) |
17
|
18
|
19
|
|
20
|
21
|
22
(1) |
23
(1) |
24
|
25
|
26
|
|
27
|
28
|
29
|
30
|
31
|
|
|
|
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
|
|
From: <php...@li...> - 2009-12-03 14:04:18
|
Well, if you hit the 60seconds, you have no other chance than
1) raise the limit in php.ini
2) optimize your code
what do you want to do with your code? It looks like you are
trying to generate a md5 hash or something like that... php has
build in support for various hashes... also your loop always transfers
data back-and-forth between java and php which makes it slow..
so instead of trying to figure out, whats wrong with the code, it
maybe would be better if you would tell us, what you like to achieve
so we can guide you to a possible better solution.
kind regards,
dominik
On Thu, Dec 3, 2009 at 2:28 PM,
<php...@li...> wrote:
>
> Hi,
>
>
> Thanks for you fast answer.
>
> I try again to implement the Java Array class like that (from the FAQ):
>
> $Byte = new JavaClass("java.lang.Byte");
> $byte = $Byte->TYPE;
> $Array = new JavaClass("java.lang.reflect.Array");
> $byteArray = $Array->newInstance($byte, 8192);
>
> $n;
> while (($n = $data->read($byteArray)) > 0) {
> $messageDigest->update($byteArray, 0, $n);
> echo "n= " . $n ;
> }
>
> -> I always got a : Maximum execution time of 60 seconds exceeded in ...
>
>
> When I try with a Php int Array like that:
>
> $buf = array();
> for ($i=0; $i<8192; $i++){
> $buf[$i] = '0';
> }
> $n;
> while (($n = $data->read($buf)) > 0) {
> $messageDigest->update($buf, 0, $n);
> echo "n= " . $n ;
> }
>
> -> I receive that: n= 184n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 6259 Exception...
>
> Here you can find the original Java code:
>
> byte buf[] = new byte[8192];
> int n;
> while ((n = data.read(buf)) > 0) {
> messageDigest.update(buf, 0, n);
> System.out.print("n=" + n);
> }
>
>
> Do you see where the problem can come from?
>
> Best regards Antoine
>
>
> _________________________________________________________________
> Faites vos achats de Noël en ligne en toute sécurité : avec MSN Internet Explorer 8 surfez sûr, télécharger maintenant gratuitement !
> http://www.microsoft.ch/msnie8/fr
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-12-03 13:28:56
|
Hi,
Thanks for you fast answer.
I try again to implement the Java Array class like that (from the FAQ):
$Byte = new JavaClass("java.lang.Byte");
$byte = $Byte->TYPE;
$Array = new JavaClass("java.lang.reflect.Array");
$byteArray = $Array->newInstance($byte, 8192);
$n;
while (($n = $data->read($byteArray)) > 0) {
$messageDigest->update($byteArray, 0, $n);
echo "n= " . $n ;
}
-> I always got a : Maximum execution time of 60 seconds exceeded in ...
When I try with a Php int Array like that:
$buf = array();
for ($i=0; $i<8192; $i++){
$buf[$i] = '0';
}
$n;
while (($n = $data->read($buf)) > 0) {
$messageDigest->update($buf, 0, $n);
echo "n= " . $n ;
}
-> I receive that: n= 184n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 8192n= 6259 Exception...
Here you can find the original Java code:
byte buf[] = new byte[8192];
int n;
while ((n = data.read(buf)) > 0) {
messageDigest.update(buf, 0, n);
System.out.print("n=" + n);
}
Do you see where the problem can come from?
Best regards Antoine
_________________________________________________________________
Faites vos achats de Noël en ligne en toute sécurité : avec MSN Internet Explorer 8 surfez sûr, télécharger maintenant gratuitement !
http://www.microsoft.ch/msnie8/fr
|