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
|
From: <php...@li...> - 2007-01-04 22:14:32
|
Hi James, > I had thought since the JavaBridge *was* running > under Tomcat that I had > access to everything a Servlet would as well. Only if you access it through the servlet. Just direct your browser to port 8080 or set up mod_jk to forward everything to Tomcat. > - but now I'm less certain I understand the exact > relationship between PHP, > a Java call, and Tomcat. Well it's quite simple. If you call http://localhost:8080/JavaBridge/sessionSharing.jsp tomcat creates a servlet from the JSP file and i nvokes it. For PHP requests this is similar: http://localhost:8080/JavaBridge/sessionSharing.php invokes a servlet which creates the HTML pages and then delegates to PHP to fill in the content. If you call http://localhost/sessionSharing.php then Apache (or IIS) renders and returns the HTML page. Tomcat doesn't even see this request. > I'm trying to use a set of Java classes that were > designed to run as a > Servlet. (I want to use PHP to write the front-end > pages and Java to do the > "heavy lifting" in the back.) > > My final call to one of the class methods is > $exportControl->processHttpdRequest($req, $resp, > $servlet, null) This shouldn't be a problem. Just replace the JSP logic with PHP and you're done. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-01-04 17:00:59
|
James, The project you are working on definitely sounds like the type of =20 case study I want to see for the Web site to show other users (and =20 potential users) what can be done with PHP and Java using Jost's php/=20 Java bridge. Contact me when you are ready to share your project results. Jon Koerber php/Java bridge Web site admin jon...@us... On Jan 4, 2007, at 8:42 AM, php-java-bridge-=20 us...@li... wrote: > Thanks, Jost, for the detailed reply. It helps me understand better =20= > how all > of these components are working together. > > I had thought since the JavaBridge *was* running under Tomcat that =20 > I had > access to everything a Servlet would as well. It seems that is not =20 > the case > - but now I'm less certain I understand the exact relationship =20 > between PHP, > a Java call, and Tomcat. > > Why do I need those java_context() objects? > > I'm trying to use a set of Java classes that were designed to run as a > Servlet. (I want to use PHP to write the front-end pages and Java =20 > to do the > "heavy lifting" in the back.) > > My final call to one of the class methods is > $exportControl->processHttpdRequest($req, $resp, $servlet, null) > > This is supposed to write out the HTML (or other file data) =20 > directly to the > browser. The parameters it requires are the Servlet Request, =20 > Response, and > context objects. > > FWIW, if I can get this to work I'm writing it up as a case study =20 > for the > website. It's a non-trivial implementation of PHP and Crystal =20 > Reports that > can only be made to run by using the PHP/Java Bridge. > > - James > > On 1/4/07, php...@li... < > php...@li...> wrote: >> >> Hi, >> >>> Am I doing something wrong when calling the >>> java_context() function? >> >> java_context() returns the current Java context. It is >> a JSR223 context if JSR223 is available. A servlet >> context, from which the servlet request, response, ... >> can be obtained, if PHP is running within a J2EE >> environment. Or a remote context when Java is accessed >> through a Apache or IIS front end or from a PHP >> command line binary: >> >> <?php >> >> require_once >> ("http://localhost:8080/JavaBridge/java/Java.inc"); >> >> $ctx =3D java_context(); >> $res =3D $ctx->getHttpServletResponse(); >> ?> >> >> In the above example $res is always null, unless the >> initial request came in through the tomcat port 8080. >> >> What do you want to do with the ServletRequest and >> ServletResponse objects anyway? When PHP is invoked >> from the command line or running within Apache/IIS, >> there's no servlet involved which could hold resonable >> values for the HTTP "GET/PUT/POST" method or URL >> parameters. >> >> >>> I first tried to use >>> java_context()->getHttpServletResponse >> [...] >>> [o(RemoteContext)]->... >>> *() but that returned null. >> >> Yes. RemoteContext always returns null for >> getHttpServletResponse etc. See >> >> http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-=20 >> java-bridge/server/php/java/servlet/RemoteContext.java?=20 >> revision=3D1.1&view=3Dmarkup >> >> >>> I then tried calling >>> java_context()->getAttribute >> >> This will not work either. The JSR223 functionality is >> only available if the bridge is running in a JSR223 >> environment: >> >> ScriptEngineManager m =3D new ScriptEngineManager(); >> ScriptEngine e =3D m.getEngineByName("php-invocable"); >> e.eval("<?php function f($p) {return 'hi '.$p;}?>"); >> Invocable i =3D (Invocable)e; >> Object o =3D i.invokeFunction("f", new >> Object[]{"Java"}); >> System.out.println(o); >> >> =3D> hi Java >> >> >> >> Can you please explain what you want to do? >> >> >> Regards, >> Jost Boekemeier >> >> >> __________________________________________________ >> Do You Yahoo!? >> Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden = =20 >> Schutz >> gegen Massenmails. >> http://mail.yahoo.com >> >> ---------------------------------------------------------------------=20= >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to =20 >> share >> your >> opinions on IT & business topics through brief surveys - and earn =20 >> cash >> http://www.techsay.com/default.php?=20 >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-01-04 16:42:50
|
VGhhbmtzLCBKb3N0LCBmb3IgdGhlIGRldGFpbGVkIHJlcGx5LiBJdCBoZWxwcyBtZSB1bmRlcnN0 YW5kIGJldHRlciBob3cgYWxsCm9mIHRoZXNlIGNvbXBvbmVudHMgYXJlIHdvcmtpbmcgdG9nZXRo ZXIuCgpJIGhhZCB0aG91Z2h0IHNpbmNlIHRoZSBKYXZhQnJpZGdlICp3YXMqIHJ1bm5pbmcgdW5k ZXIgVG9tY2F0IHRoYXQgSSBoYWQKYWNjZXNzIHRvIGV2ZXJ5dGhpbmcgYSBTZXJ2bGV0IHdvdWxk IGFzIHdlbGwuIEl0IHNlZW1zIHRoYXQgaXMgbm90IHRoZSBjYXNlCi0gYnV0IG5vdyBJJ20gbGVz cyBjZXJ0YWluIEkgdW5kZXJzdGFuZCB0aGUgZXhhY3QgcmVsYXRpb25zaGlwIGJldHdlZW4gUEhQ LAphIEphdmEgY2FsbCwgYW5kIFRvbWNhdC4KCldoeSBkbyBJIG5lZWQgdGhvc2UgamF2YV9jb250 ZXh0KCkgb2JqZWN0cz8KCkknbSB0cnlpbmcgdG8gdXNlIGEgc2V0IG9mIEphdmEgY2xhc3NlcyB0 aGF0IHdlcmUgZGVzaWduZWQgdG8gcnVuI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LnBocD9wYWdl PWpvaW4ucGhwJnA9c291cmNlZm9yZ2UmQ0lEPURFVkRFVgo+IF9fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gcGhwLWphdmEtYnJpZGdlLXVzZXJzIG1haWxp bmcgbGlzdAo+IHBocC1qYXZhLWJyaWRnZS11c2Vyc0BsaXN0cy5zb3VyY2Vmb3JnZS5uZXQKPiBo dHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0cy9saXN0aW5mby9waHAtamF2YS1icmlk Z2UtdXNlcnMKPgo= |
From: <php...@li...> - 2007-01-04 16:24:24
|
Hi, > Am I doing something wrong when calling the > java_context() function? java_context() returns the current Java context. It is a JSR223 context if JSR223 is available. A servlet context, from which the servlet request, response, ... can be obtained, if PHP is running within a J2EE environment. Or a remote context when Java is accessed through a Apache or IIS front end or from a PHP command line binary: <?php require_once ("http://localhost:8080/JavaBridge/java/Java.inc"); $ctx = java_context(); $res = $ctx->getHttpServletResponse(); ?> In the above example $res is always null, unless the initial request came in through the tomcat port 8080. What do you want to do with the ServletRequest and ServletResponse objects anyway? When PHP is invoked from the command line or running within Apache/IIS, there's no servlet involved which could hold resonable values for the HTTP "GET/PUT/POST" method or URL parameters. > I first tried to use > java_context()->getHttpServletResponse [...] > [o(RemoteContext)]->... > *() but that returned null. Yes. RemoteContext always returns null for getHttpServletResponse etc. See http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/servlet/RemoteContext.java?revision=1.1&view=markup > I then tried calling > java_context()->getAttribute This will not work either. The JSR223 functionality is only available if the bridge is running in a JSR223 environment: ScriptEngineManager m = new ScriptEngineManager(); ScriptEngine e = m.getEngineByName("php-invocable"); e.eval("<?php function f($p) {return 'hi '.$p;}?>"); Invocable i = (Invocable)e; Object o = i.invokeFunction("f", new Object[]{"Java"}); System.out.println(o); => hi Java Can you please explain what you want to do? Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-01-04 16:09:03
|
Hi, First off thank you for the reply. >> running into an odd situation. When I fire up the >> bridge it spawns 10 >> child processes > Not really. It should start only one Java VM, attached > to the HTTP server. Your right it does only fire up one instance of the VM under the apache process, with a number of threads below that. Thank you again. -- Jeff |
From: <php...@li...> - 2007-01-03 22:34:32
|
Am I doing something wrong when calling the java_context() function? I first tried to use java_context()->*getHttpServletResponse<http://php-java-bridge.sourceforge.net/pjb/server/documentation/API/php/java/servlet/Context.html#getHttpServletResponse%28%29> *() but that returned null. I then tried calling java_context()->getAttribute('javax.script.filename'), but that throws an Exception, complaining about Context.java:80. (stack trace pasted below) I've got sample code I can send to the mailing list of other want to try and duplicate it. I'm running Apache 2.2, PHP 5.2.0, Tomcat 5.5, and PHP/Java Bridge 3.2.1 java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception: Invoke failed: [o(RemoteContext)]->getAttribute((String)o(String)). Cause: java.lang.NullPointerException Responsible VM: 1.6.0@http://java.sun.com/ at php.java.servlet.Context.getAttribute(Context.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1114) at php.java.bridge.Request.handleRequest(Request.java:342) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.http.ContextRunner.run(ContextRunner.java:188) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) Caused by: java.lang.NullPointerException ... 10 more "] |
From: <php...@li...> - 2007-01-03 19:10:33
|
Hi, > running into an odd situation. When I fire up the > bridge it spawns 10 > child processes Not really. It should start only one Java VM, attached to the HTTP server. , but whenever I run a php script > that requires the > bridge, it seems to spawn more children but never > releases them. It uses a thread pool. Please see our FAQ for details. Is there a problem with this? Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-01-03 19:05:40
|
Hi, > I am experiencing problems when trying to install > the bridge on Red Hat EL > Linux w/ PHP4 and Java5. Please use the compiled java.so for RHEL3 instead. The last release was 2.0.8: http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=mesh&filename=php-java-bridge-2.0.8-1.RHEL.i386.rpm&155133 > installation, any command line > statement is terminated with a "Segmentation fault" > message. This sounds as if it crashes in the MINIT function, because all variables are set to 0. We know that some gcc versions have (had?) a strange bug which caused this. It is (was) probably a bug in the optimizer: -O0 fixes this, so does a reboot(!) and recompilation. Someone has reported this on FreeBSD and sent us the java.so created before and after the reboot. In the first java.so the init section was missing. Can you please open a problem report and attach the created java.so at the end of this ticket? Please also report the gcc version and the conditions when this problem appears and the hardware you use. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-01-02 23:09:36
|
I'm running the 3.2.1 version of the bridge with sun-jdk-1.4.2.12 and am running into an odd situation. When I fire up the bridge it spawns 10 child processes, but whenever I run a php script that requires the bridge, it seems to spawn more children but never releases them. On startup: #* */usr/local/apache/bin/apachectl start JavaBridge log: /var/log/php-java-bridge.log /usr/local/apache/bin/apachectl start: httpd started #* *ps faux | grep -c java 12 #php java_test.php OK # ps faux | grep -c java 30 #php java_test.php OK # ps faux | grep -c java 31 #php java_test.php OK # ps faux | grep -c java 32 Jan 02 11:02:18 JavaBridge INFO : JavaBridge version : 3.2.1 Jan 02 11:02:18 JavaBridge INFO : JavaBridge logFile : /var/log/php-java-bridge.log Jan 02 11:02:18 JavaBridge INFO : JavaBridge default logLevel: 10 Jan 02 11:02:18 JavaBridge INFO : JavaBridge socket : INET_LOCAL:9267 Jan 02 11:02:18 JavaBridge INFO : JavaBridge library path : /opt/sun-jdk-1.4.2.12/jre/lib/ext Jan 02 11:02:18 JavaBridge INFO : JavaBridge thread pool size: 20 The script exits just fine. Any ideas? Thanks in advance. -- jeff rooney jtr...@iy... |
From: <php...@li...> - 2007-01-02 18:41:39
|
Hi, I am experiencing problems when trying to install the bridge on Red Hat EL Linux w/ PHP4 and Java5. Dowloaded the latest source archive (v 3.2.1-1), successfully compiled and installed the bridge as superuser (no compilation or installation errors). However, this seems to break my current PHP installation, any command line statement is terminated with a "Segmentation fault" message. For example: [root@db php.d]# php Segmentation fault Commenting out the "extension = java.so" declaration in java.ini fixes PHP again, so I conclude it must be a problem with the bridge: [root@db php.d]# php --version PHP 4.3.9 (cgi) (built: Nov 2 2006 16:39:38) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies FYI, I am running on: Red Hat Enterprise Linux ES Release 4 PHP 4.3.9 Apache/2.0.52 Java 1.5.0_10 with Tomcat 5.5.20 Did anyone experience similar issues? Please help! Many thanks, -Stefan |
From: <php...@li...> - 2006-12-20 16:38:08
|
Hello, I uploaded php-java-bridge Debian 4.0 package files to the project "Files" area. The needed source files for building your own Debian package were uploaded too. Please, read the release notes at the site. Please, send packaging suggestions and corrections. Regards. Andre Felipe Machado http://www.techforce.com.br |
From: <php...@li...> - 2006-12-20 11:27:42
|
Hi James, > > For Windows installs, I had to cross-read > > information from a variety of places [...] to > >learn that: > > * the php_java.dll file distributed w/ PHP 5.2.0 AFAIK there is no "php_java.dll" file packaged with PHP 5.2.0. The last supported version was 4.2.x, see http://pear.php.net/bugs/bug.php?id=7679 and the documentation that's part of the PHP download. > I tried for a long time to load the DLL because of > numerous references > of it being "10x faster than the pure-Java > version". Yes. But this shouldn't be an issue. Even in the worst case (one round-trip for each statement) our pure PHP implementation is still faster than a comm. via SOAP. Furthermore this issue only exists with the C based PHP version. The Java based PHP version can (and does) optimize the code through the JIT. But back to the documentation issue; I think the real problem are the users who blindly download a compiled php_java.dll from http://pecl4win.php.net/ext.php/php_java.dll and expect that it somehow works; without looking at the documentation. More (i.e. redundant) documentation doesn't help imho, users won't read it anyway. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-12-19 18:11:21
|
The project team is pleased to announce a new and snazzy Web site for the php/Java bridge project. http://php-java-bridge.sourceforge.net/pjb/index.php The new Web site features better organization of all of the work Jost has compiled over the years and will include some new sections to highlight examples of using the bridge, case studies from our user community, and upcoming platform-specific installation guides. If you are currently using the php/Java bridge in a production environment at your business or educational institution, and would like to have your project featured on the Web site send me an email. It's a great way to share with others in the community how you have used Open Source to solve real-world challenges. Please send any Web site feedback you have, including typos, bad links, and suggested new content, to jon...@us.... As with all open-source projects, your input and participation is what makes the community work. Please help us by participating in the user discussion forums/mailing list and become a supporter. - Jon Koerber |
From: <php...@li...> - 2006-12-17 14:11:53
|
Hi, PHP/Java Bridge version 3.2.1 is now available. It contains only bug fixes for problems reported since the 3.1.8 release. Please see http://php-java-bridge.sourceforge.net/NEWS and http://php-java-bridge.sourceforge.net/ChangeLog for details. The protocol hasn't changed (and it will not be changed in future releases), so that ver. 3.1.8 clients can be used with a 3.2.1 server and vice versa. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-14 04:39:47
|
Hi, what is a headless java component? Are you looking for something like this: http://php-java-bridge.sourceforge.net/examples/J2EE/RMI-IIOP/README Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-14 04:37:30
|
Hi JJ, > It was possible to compile it by changing > "zend_exception_get_default()" > of source to "zend_exception_get_default(TSRMLS_C)". > This fix should only be necessary for the worker MPM, which has been disregarded by the PHP folks (due to security issues probably). On productions systems please use the prefork MPM instead; see the INSTALL document for details. > Is it such a correction and isn't there problem? Thank you very much for the bug report! Fixed in CVS head: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/java_bridge.c?r1=1.47&r2=1.48&sortby=date http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/java.c?r1=1.139&r2=1.140&sortby=date Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-12-14 04:26:16
|
Hi Vivek, interesting. Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the created java.so, the core dump and an strace (if possible) there? A trace can be obtained with e.g.: strace -s 1024 php test.php 2>php-java-bridge.trace > It would be great to see the bridge shipped as a > package. esp debian package. Debian packages will be available with php-java-bridge version 3.2.1, which will be released soon. Until then please use the binary from the FC5 RPM, please see the FAQ (on php-java-bridge.sf.net) for details. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-13 09:50:53
|
Hi, How can I access a headless java component running in JBOSS using php-java-bridge. PHP and Java are running on different servers. Is it possible to use the java component in jboss from a remote server through a php script. Thanks & Regards Vamsi |
From: <php...@li...> - 2006-12-13 05:29:59
|
Hi. It was possible to compile it by changing "zend_exception_get_default()" of source to "zend_exception_get_default(TSRMLS_C)". Is it such a correction and isn't there problem? ----- install info ------ OS : Cent4.4 Java: 1.5 PHP : 5.2.0 php-java-bridge: php-java-bridge_3.2.1.tar.gz $> phpize $> ./configure --with-java=/usr/local/jdk,/usr/local/jdk/jre $> make $> make install modify sources - /usr/local/src/php-java-bridge-3.2.1/java.c - /usr/local/src/php-java-bridge-3.2.1/java_bridge.c write JJ |
From: <php...@li...> - 2006-12-12 16:34:54
|
php...@li... wrote: > Hi Vivek, > > >> test core dumps. >> > > my crystal ball tells me that you use PHP/Java Bridge > version 3.2.1 on Linux, upgraded from 3.1.8 via "cvs > update". :) When doing a "cvs update" please make sure > to rebuild the sources from the templates (the .in > files). The scripts don't do this automatically, > without a "make distclean && rm -rf autom4te.cache" > you will get a mix of old and new code. > > You are a great crystal gazer. It actually worked :). thanks a lot > Can you please open a problem report (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and append the following information: > > * the OS > > ubuntu edgy eft > * the PHP/Java Bridge version (whether from CVS or > tarball) > CVS version > * the PHP version > > 5.1.6 > * the config.log and config.status > > > attaching config.log and config.status > As a workaround please use PHP 5.2.0 and the pure > PHP/Java Bridge implementation instead. -- In future > versions we will remove the obsolete C extension > module from the J2EE download, and leave it to the > distributors to create a customized or optimized > extension for specific PHP versions. > > distributions do not still ship php 5.2.0 until then please support the older versions. It would be great to see the bridge shipped as a package. esp debian package. cheers Vivek > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2006-12-12 16:25:59
|
http://php-java-bridge.sourceforge.net/java/README says "WARNING: THIS IMPLEMENTATION IS 10 TIMES SLOWER THAN THE C IMPLEMENTATION" Does it still holds for the "PHP 5.2.0 and the pure PHP/Java Bridge implementation"? If so, then why is the C extension "obsolete" or why the decision to abandon it? > As a workaround please use PHP 5.2.0 and the pure > PHP/Java Bridge implementation instead. -- In future > versions we will remove the obsolete C extension > module from the J2EE download, and leave it to the > distributors to create a customized or optimized > extension for specific PHP versions. > > > Regards, > Jost Boekemeier |
From: <php...@li...> - 2006-12-12 16:16:12
|
Hi Peter, > 3.0.7 (we use 3.0.8), loading libraries from a > subdirectory of extension_dir\lib\ works on our > system (extension_dir\lib\ doesn't, but that's > documented). out of curiosity; why doesn't it work and where is that documented? Since 3.0.8 the extension_dir\lib is no longer scanned by the dynamic loader, but the static loader should have loaded the jar files during VM startup. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-12-12 16:01:49
|
Hi Vivek, > test core dumps. my crystal ball tells me that you use PHP/Java Bridge version 3.2.1 on Linux, upgraded from 3.1.8 via "cvs update". :) When doing a "cvs update" please make sure to rebuild the sources from the templates (the .in files). The scripts don't do this automatically, without a "make distclean && rm -rf autom4te.cache" you will get a mix of old and new code. Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the following information: * the OS * the PHP/Java Bridge version (whether from CVS or tarball) * the PHP version * the config.log and config.status As a workaround please use PHP 5.2.0 and the pure PHP/Java Bridge implementation instead. -- In future versions we will remove the obsolete C extension module from the J2EE download, and leave it to the distributors to create a customized or optimized extension for specific PHP versions. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-12 04:21:26
|
I have compiled the bridge with php5 and sun java without problems . but on inserting it into php.ini both apache and the comand line test core dumps. I can help you with debug. if you can let me know how to get them. cheers Vivek |
From: <php...@li...> - 2006-12-08 14:08:09
|
Hi, you can't compile php-java-bridge-3.0.7a against the new 20060613 API. I think that's why Jon suggested to use php-java-bridge-3.1.8 instead. :) --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. |