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
(1) |
2
|
3
(1) |
4
(1) |
5
(4) |
|
6
|
7
(3) |
8
(2) |
9
(4) |
10
(4) |
11
(2) |
12
(3) |
|
13
(4) |
14
(2) |
15
(3) |
16
(3) |
17
(3) |
18
(3) |
19
(4) |
|
20
(3) |
21
(2) |
22
(5) |
23
(3) |
24
(2) |
25
|
26
|
|
27
(4) |
28
(1) |
29
(1) |
30
(4) |
|
|
|
|
From: Alan P. <api...@ma...> - 2005-11-27 23:21:44
|
Thanks for the note. However, I am still a bit confused... I can confirm that switch from: foreach ($javaResultList as $i) to foreach (java_values($javaResultList) as $i) Does indeed avoid the bug. BTW I am on PHP 5.0.4... However, if the zend iterator interface is broken on empty lists, then converting the list from JAVA to PHP array shouldn't fix the problem, but it does... The difference is that if it's a java object, it's calling the zend_iterator from the bridge, otherwise calling the internal zend iterator. In both cases the list is empty and thus *should* crash if the zend iterators are externally calling "currentKey" on empty arrays. I certainly agree that it's nonsense for "currentKey" to get called on the iterator when hasMore returns false. Now I know that the Iterator interface hierarchy is big, so maybe the iterator type used on the PHP array is different from the one used / implemented by the bridge? It just seems that if the bug is that empty arrays cause crashes, then the bug shouldn't go away by converting the list to a PHP array. Maybe that you've "mixed" the hashmap and array iterators into a single one is screwing it up? I don't know too much about the zend iterator internals, just trying to make sense of the bug. See what I mean? Alan On Nov 27, 2005, at 6:06 PM, Jost Boekemeier wrote: > Hi Alan, > > problem confirmed. php > 5.0.3 simply crashes when you > pass an empty list. > > >> --> <I m="hasMore" p="I" i="46203008"></I> >> <-- <B v="F" i="46203008"/> >> --> <I v="5" m="currentKey" p="I" i="46194528"></I> > > > it seems that since version 5.0.5 the zend interator > advances one element too far when the list is empty. > According to your log you have passed an empty list. > The zend iterator asks us "hasMore", we return false. > After that it asks for the current key(!?!) which > doesn't exist, of course, we have returned false! > > What follows is that php becomes confused and crashes: > The currentKey() that java returns isn't valid and php > tries to examine the key len, which may or may not > result in a segmentation fault and a php crash. > > I will check the details tomorrow evening, in the > meantime please use the following workaround: > > $php_array = java_values($javaList); > // now you can iterate over php_array which checks for > > // the above invalid condition. > > Or please downgrade to php 5.0.3 or below. :(( > > > Regards, > Jost Boekemeier > > P.S.: My plan was to drop PHP4 support in PHP/Java > Bridge Version 3.0. I don't think this is possible > considering that every new php 5 release introduces > new bugs. (Since php 5.1 even the serialization > doesn't work anymore, which worked in the php5.1 pre > betas)... > > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier > anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-27 23:06:30
|
Hi Alan, problem confirmed. php > 5.0.3 simply crashes when you pass an empty list. > --> <I m="hasMore" p="I" i="46203008"></I> > <-- <B v="F" i="46203008"/> > --> <I v="5" m="currentKey" p="I" i="46194528"></I> it seems that since version 5.0.5 the zend interator advances one element too far when the list is empty. According to your log you have passed an empty list. The zend iterator asks us "hasMore", we return false. After that it asks for the current key(!?!) which doesn't exist, of course, we have returned false! What follows is that php becomes confused and crashes: The currentKey() that java returns isn't valid and php tries to examine the key len, which may or may not result in a segmentation fault and a php crash. I will check the details tomorrow evening, in the meantime please use the following workaround: $php_array = java_values($javaList); // now you can iterate over php_array which checks for // the above invalid condition. Or please downgrade to php 5.0.3 or below. :(( Regards, Jost Boekemeier P.S.: My plan was to drop PHP4 support in PHP/Java Bridge Version 3.0. I don't think this is possible considering that every new php 5 release introduces new bugs. (Since php 5.1 even the serialization doesn't work anymore, which worked in the php5.1 pre betas)... ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-27 20:13:51
|
Hi Marc, [please excuse the delay] > How can I compile the php-java-bridge? Please follow the INSTALL instructions as close as possible. If you're stuck please open a ticket, please use: http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Please attach the output of the config.status, config.log to that ticket. If there are compilation or configuration issues on IA86 or AMD64 Linux, Windows >= Win95, FreeBSD or Sparc/Solaris with Sun or IBM JDK please first check the INSTALL document again and follow the steps as close as possible before submitting a problem report. We know that the bridge compiles and runs without problems on these platforms. For other platforms please go ahead and open a problem report right away: There are known issues with the Macintosh JVM and with GNU JVM[1]. We're currently trying to find a workaround for these problems. Regards, Jost Boekemeier [1]The GNU jvm generates incorrect bytecode for our PhpMap.java, here's a test case: public abstract class bug { protected void kill() { System.out.println("okay"); } protected abstract void init(); public static bug getBug() { return new bug(){ protected void init() { kill(); /* generated: */ // 0 0:aload_0 // 1 1:getfield #12 <Field bug this$0> // 2 4:invokevirtual #19 <Method void bug.kill()> /* should be: */ // 0 0:aload_0 // 1 1:invokevirtual #2 <Method void kill()> } }; } public static void main(String s[]) { bug.getBug().init(); System.exit(0); } } /* The getfield is wrong: there's no bug.this: getBug() is static */ ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-27 19:54:51
|
Hi Michet, [please excuse the delay] > I am trying to share sessions between php and java. > > Now I would like my php repository to be independent > from the tomcat repository. Do you use the mod_jk adapter (see "Example#1: Apache/IIS/mod_jk connector" in the NEWS) or do you share the http server document root with the servlet engine's webapps directory (see Example#2 "Example: a shared document directory" in NEWS)? (-> http://php-java-bridge.sourceforge.net/NEWS) > I pass elements in the session from php to java and > it works fine. Depending on your setup the cookie PATH is "/", which is okay for a single-user setup. > But when I return to the php I loose my elements. If you check your cookies you'll probably see two cookies, one with PATH=/JavaBridge and one with PATH=/. Or you'll see only one cookie with PATH=/. Which means that you cannot access the /JavaBridge cookie anymore. This behaviour is intentional: In a multi-user setup script userA/sessionSharing.php should not be able to share the session values with script userB/sessionSharing.php. If you don't care about the PATH, I suggest to install the JavaBridge.war without a context (i.e. as context "/"). After that you need to change the java.servlet setting from "/JavaBridge/PhpJavaServlet" to: java.servlet = "/PhpJavaServlet" > When I look at the cookie (JsessionID) I have the > same cookie from php to java. Yes, but what about the PATH? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |