From: <tec...@us...> - 2005-09-17 16:04:57
|
||*()*|| [\..konnichi wa, ogenki desu ka, Jost../] Monday, September 12, 2005, 6:29:49 PM, you wrote: >> 1. BUG. There is no PHP4 version of library in JB> The PHP/Java Bridge does not work on threaded HTTP JB> servers, e.g. IIS, unless ZTS is switched on. JB> ZTS is experimental in all versions below PHP 5 and I JB> know of at least 3 incompatible ABI's since 4.3.2. JB> So the question is: which version of PHP4 on windows JB> should we support? Isn't it possible to compile your JB> own php4 binary as described in the README? 4.4.0 - at least you can always ask new users to get latest version of PHP to avoid bugs introduced earlier. I've tried to compile PHP myself from CVS, but failed. And also I don't use any web-server - I want to try mix of Java and PHP in standalone application. >> 2. About 80% of windows distributive size is >> php5ts.dll >> Is it possible to make alternative -light version? JB> Yes, certainly. But is 3MB really too large these JB> days? Yes, sometimes. It will be nice if this application could detect presence of PHP and link it dynamically regardless of PHP5/PHP4 differences and without additional path setup. >> 3. Patch to make test run even if unzipped not in >> c:/php5 JB> Isn't it possible to adjust the php.ini accordingly? JB> One has to do this during the installation process JB> anyway. But the widgetTest.bat could be changed, of JB> course. I like things like unzip and run. Like any lazy user I hate doing things that could be automated or not intuitively setup by default. Especially test-cases. =) >> 4. JavaBridge.jar doesn't output any messages about >> it was started successfully JB> If you start it at log level 3 or above, as described JB> in the README, it will output to stdout or to a log JB> file. README is very long and contains a lot of information. Read 25k just to find command line options (especially if there are not any) is a waste of time. I thought it should be good for an application to react on help/unknown cmd parameters to be user-friendly. >> complete. Is there any ways to control running >> server? JB> "apachectl start" starts the apache server and the JB> bridge and "apachectl stop" stops both, please see the JB> README for details. Since version 2.0.8 this works on JB> windows, too. JB> However, the recommended way to run the backend is to JB> start it via the php-java-bridge.service script (on JB> Unix) or via tomcat (on windows). The bridge is not running under Tomcat or Apache - it is supposed to be used for standalone application in my case. And yes - it is windows. >> 6. It would be good to have a ToC in readme. JB> Yes. =) >> Q1. Is it possible to extend Java class with PHP? >> I.e. make PHP class, inherited from one of Java? JB> The java_closure() call currently accepts only JB> interfaces, not classes. It would be nice if the Sun's JB> dynamic proxy would accept a class, but it doesn't. If JB> we want this, we must write our own proxy compiler. I don't think it is easy, esp. for me. =) Probably It should be easier to create a proxy Java object, which will call invokable PHP functions where it needed. The problem is that I still unsure if I've got the whole picture of this bridge and how to plug it into Java application correctly. WBR.techtonik -- (B)uilding, (A)ntenna, (S)pan and (E)arth * terminal velocity - 54m/s, 305m * |