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
(3) |
6
(6) |
7
(6) |
8
(10) |
9
(6) |
10
|
11
(5) |
12
(5) |
13
(1) |
14
|
15
(2) |
16
(2) |
17
(4) |
18
(3) |
19
(3) |
20
(7) |
21
(5) |
22
(7) |
23
(1) |
24
(4) |
25
|
26
(3) |
27
(2) |
28
(1) |
29
|
30
|
31
|
From: <php...@li...> - 2009-01-05 16:44:52
|
Hi, > I want to wrap two PHP objects as closures, pass them to Java, and in > Java call a method on the first closure with the second closure as > parameter [argument] In pseudo code (please see the JSR 223 API for details): String pA = "class A{function testA($b){echo $b->testB();}}\n" String pB = "class B{function testB(){echo 'hello world';}}\n" String test = "<?php "+pA+Pb+" $thiz=java_context()->getAttribute("thiz"); $thiz->call(java_closure(new A()), java_closure(new B()); ?> public void doWork (){ scriptEngine = new ScriptEngineManager().getEngineByName("php-invocable"); scriptEngine.put("thiz", this); scriptEngine.eval(test); ((Closeable)scriptEngine).close(); } static interface IA { public void testA(IB cc1); } static interface IB { public void testB(); } public void call(Object $ccA, Object $ccB) { IA ccA = scriptEngine.getInterface($ccA, IA); IB ccB = scriptEngine.getInterface($ccB, IB); ccA.testA(ccB); } > The problem is that on the php side I get a new object of > type PhpProcedure instead of the closure/proxy I created before. Yes, the type is determined lazily. Why is that a problem? > Therefore within the method I always get the wrong > parameter passed in. I think this is a misunderstanding. If you don't specify the type, either via getInterface() (see above) or by calling java_closure() with three arguments, the generated procedure is generic, i.e. you cannot call the procedure "testA" on it. Regards, Jost Boekemeier |
From: <php...@li...> - 2009-01-05 13:42:56
|
I think found what was causing my confusion. On the SQL Server the field that I thought was a double is actually defined as a Money type. If I understand it correctly, the Money type is a long integer that has to be scaled based on the definition. Thanks for your reply. I suspected that PHP only really used strings, but wasn't sure. Also, I had forgotten about the java_values command. I have used it before, but it has been some time. Thanks Jost. Charles Shaffer Senior Analyst NTN-Bower Corporation php...@li... 01/03/2009 11:00 AM Please respond to php-java-bridge-users To: php...@li... cc: Subject: Re: [Php-java-bridge-users] Type Casting Hi, can you please give an example which demonstrates the problem? > Should PHP handle everyting as a string and type casting be > done in Java? That's the only type that PHP supports, anyway. :) > For example I have a Sql query being called from Java. PHP > passes a > string and an int to the Java routine and the Java routine > runs the SQL query and returns a double. The bridge will return a proxy for the result, which can be evaluated as usual: either echo (int)(string)$sqlResult; or echo java_values($sqlResult); Note that the first line above might be wrong on 32 bit machines, where PHP int values have a limited range. Use (double)(string)$sqlResult instead. Regards, Jost Boekemeier ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-01-05 09:05:49
|
Hi all, I want to wrap two PHP objects as closures, pass them to Java, and in Java call a method on the first closure with the second closure as parameter. I believe that there's no simple java_closure()-call to do this at once. Therefore I wrote a Java-class that takes over the two closures and tries to do what I desribed above. See attachment for my PHP and Java code look. The problem is that on the php side I get a new object of type PhpProcedure instead of the closure/proxy I created before. Therefore within the method I always get the wrong parameter passed in. If I omit the line where I replace Proxy by underlying PhpProcedure in my java code, I get an (dollar)Proxy0-object instead of the PhpProcedure - which is still wrong. What I probably would need to get is the PhpProcedureProxy, but I've got no glue how to get a handle on that on the java side. I'm quite new to PHP-Java-Bridge, so I don't know whether this is a missing feature or I'm missing some basic understanding. Regards Juergen |