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...> - 2017-11-15 21:27:14
|
Hi, I'm using the php java bridge and lucene to search for documents. What I'm finding is that any speed gains that I've obtained from lucene are greatly outweighed by the time it takes to get the java bridge .war (and apache lucene .jar in /lib/) from Tomcat with each and every browser-based search request. Indexing uses node.js, edge and lucene.net, but I can't use that combination on my internet-facing server. I'm thinking of writing a tcp server in php, running that from a command line, and sending queries to that server, so that lucene will always be readily-available. However – especially with being new to this – I wonder if there are other ways of gaining persistence? Many thanks for a great project! Eric Twose. |
From: <php...@li...> - 2017-10-03 14:01:43
|
I am trying to install PHP/Java bridge on my MacOS (10.12.6 - Sierra). I downloaded and installed the latest version (7.1.3) as the Tomcat application. Because Mac’s PHP does not provide pgp-cgi, I am using the PHP from MAMP: MBP-Robert-2:bin Robert$ *pwd* /Users/Robert/Developer/Servers/apache-tomcat-8.5.11/bin MBP-Robert-2:bin Robert$ *which php-cgi* /Applications/MAMP/bin/php/php7.1.8/bin/php-cgi MBP-Robert-2:bin Robert$ *php-cgi -v* *PHP 7.1.8 (cgi-fcgi)* (built: Aug 17 2017 11:34:58) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies PhpCGIServlet is configured to use the system PHP (e.g. MAMP PHP): <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <load-on-startup>0</load-on-startup> <init-param> <param-name>*prefer_system_php_exec*</param-name> <param-value>*On*</param-value> </init-param> <init-param> <param-name>php_include_java</param-name> <param-value>Off</param-value> </init-param> </servlet> I can run the bridge via standalone Apache or directly from PhpStorm, however, when I try to run the PHP code using the CGI Servlet, I get the error php.java.fastcgi.ConnectionException: Could not connect to server. Please start it with: cd /Users/Robert/Developer/Servers/apache-tomcat-8.5.11/webapps/phpbridge/WEB-INF/cgi/x86_64-mac REDIRECT_STATUS=200 X_JAVABRIDGE_OVERRIDE_HOSTS=“/" PHP_FCGI_CHILDREN="5" PHP_FCGI_MAX_REQUESTS="500" *php-cgi -b 127.0.0.1:9668 <http://127.0.0.1:9668>* with root cause java.net.ConnectException: Connection refused (Connection refused) java.net.PlainSocketImpl.socketConnect(Native Method) Checking the running processes I see the php-cgi is running and listening on the port 9968 MBP-Robert-2:WEB-INF Robert$ ps -ef 501 10052 10051 0 3:04PM ?? 0:00.03 /Applications/MAMP/bin/php/php7.1.8/bin/php-cgi -b 127.0.0.1:9668 . . . and I do not assume the reason for this error is missing CGI interface. For me is a bit confusing why the servlet advices to run the php-cgi from the *WEB-INF/cgi/**x86_64-mac* when configured to run system wide php-cgi executable. Any idea what’s wrong? Robert * Robert Carnecky* Neopsis GmbH Sustenweg 9 CH-6020 Emmenbruecke Switzerland Tel. (+)41-41-262 0230 Fax (+)41-41-262 0231 Mobile (+)41-79-457 9776 Mail ro...@ne... |
From: <php...@li...> - 2017-05-18 16:57:40
|
It's in the eclipse compiler ecj.jar. Am Donnerstag, den 18.05.2017, 09:41 +0200 schrieb php-java-bridge- us...@li...: > Hello, > i try to build debian package of php-java-bridge on debian9 with > php7.1. > To do that i use pbuilder. So far so good. > > I get this class not found exception. > php-java-bridge-7.1.3/build.xml:44: Class not found: > org.eclipse.jdt.core.JDTCompilerAdapter > > Where can I get or how can i build this class? > > Best regards, > basti > > ------------------------------------------------------------------- > ----------- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2017-05-18 08:15:29
|
Hello, i try to build debian package of php-java-bridge on debian9 with php7.1. To do that i use pbuilder. So far so good. I get this class not found exception. php-java-bridge-7.1.3/build.xml:44: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter Where can I get or how can i build this class? Best regards, basti |
From: <php...@li...> - 2017-04-19 07:19:19
|
'We can back-port the fix for the 6.x series. Please let me know if you need the fix.' it could be not bad, if it is not difficult for you, thanks for the reply 18.04.2017, 19:33, "php...@li..." <php...@li...>: > Hi, > > (HTTP POST not working in PHP5.5 and above). > > there's an empty param call needed in PHP 5.4 and above. Please see the > NEWS in PHP/Java bridge version 7.1.3 for details. > > Php <= 5.4 is more robust, but newer PHP versions simply crash when the > empty STDIN param is missing. > > We can back-port the fix for the 6.x series. Please let me know if you need > the fix. > > That beeing said, FastCGI SAPI in PHP version > 5.4 has become *very* slow. > Presumably because of this empty write, which (wild guessing here) would > cause a write/write/read and therefore run into an "ack delay" > (->wikipedia). > > So you should better report this bug to the PHP devs. Is dimitry still > working for zend? > > In any case, the empty param is required by fcgi spec, so we can prepare a > patch for pjb6. > > On Tuesday, April 18, 2017, <php...@li...> > wrote: > >> Hello! Thanks for your help, all my previous problems with phpdebugger was >> resolved when I changed the version of Java Bridge on the 6th. I am using >> Java Bridge 6 now and I faced with the error 'HTTP Status 500 - PHP >> FastCGI instance failed.' when I am sending any files through the HTML form >> with 'enctype="multipart/form-data"'. Why could it happend? I am really >> thankful for your help.(PHP 5.6) >> >> Below is the full text of the error: >> >> --------------------- >> HTTP Status 500 - PHP FastCGI instance failed. >> >> type Exception report >> >> message PHP FastCGI instance failed. >> >> description The server encountered an internal error that prevented it >> from fulfilling this request. >> >> exception >> >> javax.servlet.ServletException: PHP FastCGI instance failed. >> php.java.servlet.fastcgi.FastCGIServlet.execute( >> FastCGIServlet.java:448) >> php.java.servlet.fastcgi.FastCGIServlet.handle( >> FastCGIServlet.java:481) >> php.java.servlet.fastcgi.FastCGIServlet.doGet( >> FastCGIServlet.java:521) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:624) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:731) >> php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) >> root cause >> >> php.java.bridge.http.FCGIConnectionException >> php.java.bridge.http.FCGIConnectionInputStream.read( >> FCGIConnectionInputStream.java:64) >> php.java.bridge.http.FCGIInputStream.doRead( >> FCGIInputStream.java:65) >> php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) >> php.java.servlet.fastcgi.FastCGIServlet.parseBody( >> FastCGIServlet.java:362) >> php.java.servlet.fastcgi.FastCGIServlet.execute( >> FastCGIServlet.java:433) >> php.java.servlet.fastcgi.FastCGIServlet.handle( >> FastCGIServlet.java:481) >> php.java.servlet.fastcgi.FastCGIServlet.doGet( >> FastCGIServlet.java:521) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:624) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:731) >> php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) >> root cause >> >> java.io.IOException: С обоих концов канала отсутствуют процессы >> java.io.RandomAccessFile.readBytes(Native Method) >> java.io.RandomAccessFile.read(Unknown Source) >> php.java.bridge.http.RandomAccessFileInputStream.read( >> RandomAccessFileInputStream.java:74) >> php.java.bridge.http.FCGIConnectionInputStream.read( >> FCGIConnectionInputStream.java:58) >> php.java.bridge.http.FCGIInputStream.doRead( >> FCGIInputStream.java:65) >> php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) >> php.java.servlet.fastcgi.FastCGIServlet.parseBody( >> FastCGIServlet.java:362) >> php.java.servlet.fastcgi.FastCGIServlet.execute( >> FastCGIServlet.java:433) >> php.java.servlet.fastcgi.FastCGIServlet.handle( >> FastCGIServlet.java:481) >> php.java.servlet.fastcgi.FastCGIServlet.doGet( >> FastCGIServlet.java:521) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:624) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:731) >> php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) >> note The full stack trace of the root cause is available in the Apache >> Tomcat/7.0.73 logs. >> >> Apache Tomcat/7.0.73 >> -------------------- >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... <javascript:;> >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2017-04-18 16:32:21
|
Hi, (HTTP POST not working in PHP5.5 and above). there's an empty param call needed in PHP 5.4 and above. Please see the NEWS in PHP/Java bridge version 7.1.3 for details. Php <= 5.4 is more robust, but newer PHP versions simply crash when the empty STDIN param is missing. We can back-port the fix for the 6.x series. Please let me know if you need the fix. That beeing said, FastCGI SAPI in PHP version > 5.4 has become *very* slow. Presumably because of this empty write, which (wild guessing here) would cause a write/write/read and therefore run into an "ack delay" (->wikipedia). So you should better report this bug to the PHP devs. Is dimitry still working for zend? In any case, the empty param is required by fcgi spec, so we can prepare a patch for pjb6. On Tuesday, April 18, 2017, <php...@li...> wrote: > Hello! Thanks for your help, all my previous problems with phpdebugger was > resolved when I changed the version of Java Bridge on the 6th. I am using > Java Bridge 6 now and I faced with the error 'HTTP Status 500 - PHP > FastCGI instance failed.' when I am sending any files through the HTML form > with 'enctype="multipart/form-data"'. Why could it happend? I am really > thankful for your help.(PHP 5.6) > > Below is the full text of the error: > > --------------------- > HTTP Status 500 - PHP FastCGI instance failed. > > type Exception report > > message PHP FastCGI instance failed. > > description The server encountered an internal error that prevented it > from fulfilling this request. > > exception > > javax.servlet.ServletException: PHP FastCGI instance failed. > php.java.servlet.fastcgi.FastCGIServlet.execute( > FastCGIServlet.java:448) > php.java.servlet.fastcgi.FastCGIServlet.handle( > FastCGIServlet.java:481) > php.java.servlet.fastcgi.FastCGIServlet.doGet( > FastCGIServlet.java:521) > javax.servlet.http.HttpServlet.service(HttpServlet.java:624) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) > root cause > > php.java.bridge.http.FCGIConnectionException > php.java.bridge.http.FCGIConnectionInputStream.read( > FCGIConnectionInputStream.java:64) > php.java.bridge.http.FCGIInputStream.doRead( > FCGIInputStream.java:65) > php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) > php.java.servlet.fastcgi.FastCGIServlet.parseBody( > FastCGIServlet.java:362) > php.java.servlet.fastcgi.FastCGIServlet.execute( > FastCGIServlet.java:433) > php.java.servlet.fastcgi.FastCGIServlet.handle( > FastCGIServlet.java:481) > php.java.servlet.fastcgi.FastCGIServlet.doGet( > FastCGIServlet.java:521) > javax.servlet.http.HttpServlet.service(HttpServlet.java:624) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) > root cause > > java.io.IOException: С обоих концов канала отсутствуют процессы > java.io.RandomAccessFile.readBytes(Native Method) > java.io.RandomAccessFile.read(Unknown Source) > php.java.bridge.http.RandomAccessFileInputStream.read( > RandomAccessFileInputStream.java:74) > php.java.bridge.http.FCGIConnectionInputStream.read( > FCGIConnectionInputStream.java:58) > php.java.bridge.http.FCGIInputStream.doRead( > FCGIInputStream.java:65) > php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) > php.java.servlet.fastcgi.FastCGIServlet.parseBody( > FastCGIServlet.java:362) > php.java.servlet.fastcgi.FastCGIServlet.execute( > FastCGIServlet.java:433) > php.java.servlet.fastcgi.FastCGIServlet.handle( > FastCGIServlet.java:481) > php.java.servlet.fastcgi.FastCGIServlet.doGet( > FastCGIServlet.java:521) > javax.servlet.http.HttpServlet.service(HttpServlet.java:624) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) > note The full stack trace of the root cause is available in the Apache > Tomcat/7.0.73 logs. > > Apache Tomcat/7.0.73 > -------------------- > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... <javascript:;> > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-04-18 10:04:17
|
Hello! Thanks for your help, all my previous problems with phpdebugger was resolved when I changed the version of Java Bridge on the 6th. I am using Java Bridge 6 now and I faced with the error 'HTTP Status 500 - PHP FastCGI instance failed.' when I am sending any files through the HTML form with 'enctype="multipart/form-data"'. Why could it happend? I am really thankful for your help.(PHP 5.6) Below is the full text of the error: --------------------- HTTP Status 500 - PHP FastCGI instance failed. type Exception report message PHP FastCGI instance failed. description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: PHP FastCGI instance failed. php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:448) php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481) php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) root cause php.java.bridge.http.FCGIConnectionException php.java.bridge.http.FCGIConnectionInputStream.read(FCGIConnectionInputStream.java:64) php.java.bridge.http.FCGIInputStream.doRead(FCGIInputStream.java:65) php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:362) php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:433) php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481) php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) root cause java.io.IOException: С обоих концов канала отсутствуют процессы java.io.RandomAccessFile.readBytes(Native Method) java.io.RandomAccessFile.read(Unknown Source) php.java.bridge.http.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:74) php.java.bridge.http.FCGIConnectionInputStream.read(FCGIConnectionInputStream.java:58) php.java.bridge.http.FCGIInputStream.doRead(FCGIInputStream.java:65) php.java.bridge.http.FCGIInputStream.read(FCGIInputStream.java:54) php.java.servlet.fastcgi.FastCGIServlet.parseBody(FastCGIServlet.java:362) php.java.servlet.fastcgi.FastCGIServlet.execute(FastCGIServlet.java:433) php.java.servlet.fastcgi.FastCGIServlet.handle(FastCGIServlet.java:481) php.java.servlet.fastcgi.FastCGIServlet.doGet(FastCGIServlet.java:521) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) php.java.servlet.PhpCGIFilter.doFilter(PhpCGIFilter.java:126) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.73 logs. Apache Tomcat/7.0.73 -------------------- |
From: <php...@li...> - 2017-04-08 13:16:42
|
Hi, > ava\PHPDebugger.php since version 7 die PHPDebugger is part of the JavaBridge and enabled by default. As it appears that the debugger still has some bugs, we'll disable it in the next release. |
From: <php...@li...> - 2017-04-07 12:02:20
|
Sorry, but the more I think on this the more I believe the debugger is messing you up (it is using sockets to communicate with the bridge, and maybe the bridge don't exist anymore hence the :0 address) In your script just before you access $_GET['a'] try file_put_contents("myDeBug.txt", print_r($_GET, true)); and see what actually exists in the $_GET var. Dirk wrote: > Hello, > > My experience is mostly the other way around - Running PHP in > Apache(or even from the command line) and having JavaBridge.jar > running either standalone or in tomcat in order to allow PHP to call > Java methods. > > A silly question, but why are you trying to run php in Tomcat? Are you > directly invoking php scripts from a java servelet? and if so why are > you accessing the php stuff from a url instead of java code that > invokes the javabridge script class directly. > > I do know from experience that the built in stand alone Javabridge > http engine started with: > java -Dphp.java.bridge.exec_sun_vm=false -Djava.awt.headless=true > -Dphp.java.bridge.asDaemon=true -jar JavaBridge.jar HTTP:9268 > does NOT support any of the $_REQUEST variables. They simply return > empty variables, but they do not crash! > > What port is your tomcat listening on? Is it the install default of > 8080 (so to get Tomcat you go http://tomcatserver:8080) or is it port > 80. So does your URL look like > http://tomcatserver_*:8080*_/index.php?a=value or is it plain > http://tomcatserver/index.php?a=value > There is code in FastCGIServlet.java which checks whether the port in > the URL is standard (http = 80 or https = 443) and only includes the > port if it is NOT 80/443. From your error message it seems that a port > of 0 is being passed, although this might be the debugger that is > messing you up, not the real error. > > Have you got a php log file set in the php.ini used? Is there not > anything useful in that for the $_GET['a'] error? > > > php...@li... wrote: >> I have one web-server - tomcat, and PHP interpreter. I want to run PHP scripts through Tomcat. And I can do it, it's all right. My error is 'fsockopen(): unable to connect to :0 (Failed to parse address"")' I already told you about it. In PHP I describe global http values $_GET and $_POST and try to get them in different ways. My script is able to get $_POST, but it is not able to get $_GET, because Tomcat give the error, when I appeal to the server by address /index.php?a=5, and in the body of my script I call $_GET['a']. The server give the error, and I don't know what to do. I want to get $_GET['a'], аbut I get only the error. >> >> 05.04.2017, 16:42,"php...@li..." <php...@li...>: >> >>> Without knowing more detail of what you are doing ... Difficult to say. >>> >>> From the quote below the error is in PHPDebugger, not in any of your code. >>> >>> Javbridge is a bunch of different things for different people. It allows >>> calling of Java from PHP in a couple of different setups, and it also >>> allows Java to invoke php scripts in a servlet environment like Tomcat. >>> >>> What have you got /trying to get? >>> Tomcat running an instance of JavaBridge - where you are deploying PHP >>> apps into the Tomcat instance? >>> Tomcat running an instance of JavaBridge - and a separate Apache / Web >>> server instance running php from which you are trying to call java? >>> Stand alone JavaBridge servlet instance running - and a separate Apache >>> / Web server instance running php from which you are trying to call java? >>> >>> php...@li... wrote: >>> >>>> Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address"") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! >>>> >>>> -- >>>> С Ув. Qia >>>> >>>> ------------------------------------------------------------------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org!http://sdm.link/slashdot >>>> _______________________________________________ >>>> php-java-bridge-users mailing list >>>> php...@li... >>>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>>> >>> ------------------------------------------------------------------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org!http://sdm.link/slashdot >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>> >> >> -- >> С Ув. Qia >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org!http://sdm.link/slashdot >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> |
From: <php...@li...> - 2017-04-07 11:29:57
|
Hello, My experience is mostly the other way around - Running PHP in Apache(or even from the command line) and having JavaBridge.jar running either standalone or in tomcat in order to allow PHP to call Java methods. A silly question, but why are you trying to run php in Tomcat? Are you directly invoking php scripts from a java servelet? and if so why are you accessing the php stuff from a url instead of java code that invokes the javabridge script class directly. I do know from experience that the built in stand alone Javabridge http engine started with: java -Dphp.java.bridge.exec_sun_vm=false -Djava.awt.headless=true -Dphp.java.bridge.asDaemon=true -jar JavaBridge.jar HTTP:9268 does NOT support any of the $_REQUEST variables. They simply return empty variables, but they do not crash! What port is your tomcat listening on? Is it the install default of 8080 (so to get Tomcat you go http://tomcatserver:8080) or is it port 80. So does your URL look like http://tomcatserver_*:8080*_/index.php?a=value or is it plain http://tomcatserver/index.php?a=value There is code in FastCGIServlet.java which checks whether the port in the URL is standard (http = 80 or https = 443) and only includes the port if it is NOT 80/443. From your error message it seems that a port of 0 is being passed, although this might be the debugger that is messing you up, not the real error. Have you got a php log file set in the php.ini used? Is there not anything useful in that for the $_GET['a'] error? php...@li... wrote: > I have one web-server - tomcat, and PHP interpreter. I want to run PHP scripts through Tomcat. And I can do it, it's all right. My error is 'fsockopen(): unable to connect to :0 (Failed to parse address"")' I already told you about it. In PHP I describe global http values $_GET and $_POST and try to get them in different ways. My script is able to get $_POST, but it is not able to get $_GET, because Tomcat give the error, when I appeal to the server by address /index.php?a=5, and in the body of my script I call $_GET['a']. The server give the error, and I don't know what to do. I want to get $_GET['a'], аbut I get only the error. > > 05.04.2017, 16:42, "php...@li..."<php...@li...>: > >> Without knowing more detail of what you are doing ... Difficult to say. >> >> From the quote below the error is in PHPDebugger, not in any of your code. >> >> Javbridge is a bunch of different things for different people. It allows >> calling of Java from PHP in a couple of different setups, and it also >> allows Java to invoke php scripts in a servlet environment like Tomcat. >> >> What have you got /trying to get? >> Tomcat running an instance of JavaBridge - where you are deploying PHP >> apps into the Tomcat instance? >> Tomcat running an instance of JavaBridge - and a separate Apache / Web >> server instance running php from which you are trying to call java? >> Stand alone JavaBridge servlet instance running - and a separate Apache >> / Web server instance running php from which you are trying to call java? >> >> php...@li... wrote: >> >>> Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address"") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! >>> >>> -- >>> С Ув. Qia >>> >>> ------------------------------------------------------------------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > -- > С Ув. Qia > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-04-07 05:39:30
|
I have one web-server - tomcat, and PHP interpreter. I want to run PHP scripts through Tomcat. And I can do it, it's all right. My error is 'fsockopen(): unable to connect to :0 (Failed to parse address"")' I already told you about it. In PHP I describe global http values $_GET and $_POST and try to get them in different ways. My script is able to get $_POST, but it is not able to get $_GET, because Tomcat give the error, when I appeal to the server by address /index.php?a=5, and in the body of my script I call $_GET['a']. The server give the error, and I don't know what to do. I want to get $_GET['a'], аbut I get only the error. 05.04.2017, 16:42, "php...@li..." <php...@li...>: > Without knowing more detail of what you are doing ... Difficult to say. > > From the quote below the error is in PHPDebugger, not in any of your code. > > Javbridge is a bunch of different things for different people. It allows > calling of Java from PHP in a couple of different setups, and it also > allows Java to invoke php scripts in a servlet environment like Tomcat. > > What have you got /trying to get? > Tomcat running an instance of JavaBridge - where you are deploying PHP > apps into the Tomcat instance? > Tomcat running an instance of JavaBridge - and a separate Apache / Web > server instance running php from which you are trying to call java? > Stand alone JavaBridge servlet instance running - and a separate Apache > / Web server instance running php from which you are trying to call java? > > php...@li... wrote: >> Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address"") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! >> >> -- >> С Ув. Qia >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- С Ув. Qia |
From: <php...@li...> - 2017-04-05 13:41:48
|
Without knowing more detail of what you are doing ... Difficult to say. From the quote below the error is in PHPDebugger, not in any of your code. Javbridge is a bunch of different things for different people. It allows calling of Java from PHP in a couple of different setups, and it also allows Java to invoke php scripts in a servlet environment like Tomcat. What have you got /trying to get? Tomcat running an instance of JavaBridge - where you are deploying PHP apps into the Tomcat instance? Tomcat running an instance of JavaBridge - and a separate Apache / Web server instance running php from which you are trying to call java? Stand alone JavaBridge servlet instance running - and a separate Apache / Web server instance running php from which you are trying to call java? php...@li... wrote: > Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address"") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! > > -- > С Ув. Qia > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-04-05 08:37:04
|
Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address "") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! -- С Ув. Qia |
From: <php...@li...> - 2017-04-05 08:33:05
|
Hello, I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address "") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'. How I can repare it? Thanks for your attantion! -- С Ув. Qia |
From: <php...@li...> - 2017-01-30 16:40:42
|
Hi, Could be because the Java.inc has been included twice, or an opcache... Are you using the default JavaBridge.war provided on sourceforge ? And did you test the excel.php from the welcome page or from a custom script ? If yes I would check first your php-cgi installation (let me know your system)... and its reference in the web.xml config. On my side, I've just tested it on a fork ( https://github.com/belgattitude/php-java-bridge) that we maintain with Christian... From there, the excel.php works at least on my system. If you intend to work with the bridge, I would really recommend to not use the sourceforge version... and have a look at the repo we're currently setting up: - server side : https://github.com/belgattitude/php-java-bridge - client (reworked Java.inc): https://github.com/belgattitude/soluble-japha Issues or questions are very welcome, Sebastien On Sun, Jan 29, 2017 at 4:32 AM, < php...@li...> wrote: > Hi All, > > i have been installed tomcat and deploy JavaBridge.war, > but when try tro execute excel.php i got this message: > > > > > *java.lang.RuntimeException: PHP Fatal error: Cannot override final method > Exception::__wakeup() in /srv/tomcat/webapps/JavaBridge/java/Java.inc on > line 2024* > Please Help > Thank You > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-01-29 03:33:01
|
Hi All, i have been installed tomcat and deploy JavaBridge.war, but when try tro execute excel.php i got this message: *java.lang.RuntimeException: PHP Fatal error: Cannot override final method Exception::__wakeup() in /srv/tomcat/webapps/JavaBridge/java/Java.inc on line 2024* Please Help Thank You |
From: <php...@li...> - 2017-01-18 17:17:26
|
Hi Chris, Great ! If you intend to rely on it I would really consider few things. Depending on your needs it's always good to consider developping API (rest/microservices/json..) between Java and PHP first. This way you can really fine-tune your integrations. Of course this requires a fixed contract and development on both sides. On the other hand if you are looking to use directly Java libs, the bridge is the way to go ! *Here's some feedbacks on my experience (limited to call Java from PHP)* 1. The Bridge is rock solid. Stable and performant (experience with Tomcat 7/8) 2. Don't use the original client 'Java.inc' and use https://github.com/ belgattitude/soluble-japha instead (HHVM and PHP7 supported + PSR4 + fixes). 3. Don't refer too much on obsolete doc. Whatever you read, the bridge is running perfectly with modern ecosystem (JDK8, servlet 3.0, Tomcat8...). Really have a look to https://github.com/belgattitude/pjb-starter-gradle/ *Some drawbacks* 1. If you intend to use java closure from php... you'll need to figure out how... :) Check first 2. Performance, try to limit things like making 100000 method calls (iterating over a resultset)... Prefer buffering on the server and get everything at once. See https://github.com/belgattitude/php-java-bridge/blob/master/README#L481 3. Timezone differences.... Please be aware of them, see https://github.com/belgattitude/soluble-japha/blob/master/doc/language_basics.md#working-with-dates when if you rely on dates. 4. Be aware of security implications of running a bridge (should be localhost only or secured access). Many options exists, but easily doable. 5. Logging/Debugging (so far not problem, but needs to be documented better - I used to watch tomcat log files regularly, not efficient when developping) So If you're not afraid, your help is greatly appreciated. I prepared some ideas to share, see the link below: https://github.com/belgattitude/php-java-bridge/issues/6 I'm not really Java developer (more and more on typescript/react/frontend projects those days) so I'm really enjoying sharing. Can be a start for to something... I'll PM you soon, so we can get in contact. Seb On Tue, Jan 17, 2017 at 3:00 PM, < php...@li...> wrote: > Hi Seb, > > thanks for your reply and hinting at the source! I've just overlooked the > Java sources somehow buried inside server/php/... > I have now managed to successfully build the artifacts (*.jar, *.war, > *.inc) and can start to play around with it a bit :) > > Ernestly: > I wholehearted consider your project as an important component for some of > my own major project works: > Building a SaaS-ready Edition of Nextcloud Server. We have a definite > requirement there for accessing the Java ecosystem from Nextcloud's > PHP-centric environment in an effective and reliable way. > > In case you need any help for e.g. modernizing the Java code I would be > quite willing to contribute my 10+ years of Java developer experience. Just > let me know via christian [dot] lerch [at] km-works [dot] eu > > Best, > Chris > > > 2017-01-16 20:21 GMT+01:00 <php...@li...>: > > > Hi Chris, > > > > The original sources are available through CVS > > https://sourceforge.net/p/php-java-bridge/code/ > > > > As a better alternative I made an unofficial fork : > > > > https://github.com/belgattitude/php-java-bridge > > > > You can have a look to the changelog to have more info or clone the > > preserved 6.2.1 original branch. Check the README.md for build recipes. > > > > Note that if you intend to work with PHP7, I've rewrote the client part > > `Java.inc`, see the > > > > https://github.com/belgattitude/soluble-japha > > and http://docs.soluble.io/soluble-japha/manual/ > > > > As a teaser I'm also preparing a starter project with gradle, spring boot > > and embedded tomcat: https://github.com/belgattitude/pjb-starter-gradle/ > > Still at very early stages but don't hesitate to open issues or > contribute. > > > > All the best, > > > > Seb > > > > On Mon, Jan 16, 2017 at 5:32 PM, < > > php...@li...> wrote: > > > > > Hi all, > > > > > > would love to compile JavaBridge.jar with Java 8 but could not find the > > > sources anywhere. Can you help? > > > > > > Best, > > > Chris > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > php-java-bridge-users mailing list > > > php...@li... > > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-01-17 14:01:00
|
Hi Seb, thanks for your reply and hinting at the source! I've just overlooked the Java sources somehow buried inside server/php/... I have now managed to successfully build the artifacts (*.jar, *.war, *.inc) and can start to play around with it a bit :) Ernestly: I wholehearted consider your project as an important component for some of my own major project works: Building a SaaS-ready Edition of Nextcloud Server. We have a definite requirement there for accessing the Java ecosystem from Nextcloud's PHP-centric environment in an effective and reliable way. In case you need any help for e.g. modernizing the Java code I would be quite willing to contribute my 10+ years of Java developer experience. Just let me know via christian [dot] lerch [at] km-works [dot] eu Best, Chris 2017-01-16 20:21 GMT+01:00 <php...@li...>: > Hi Chris, > > The original sources are available through CVS > https://sourceforge.net/p/php-java-bridge/code/ > > As a better alternative I made an unofficial fork : > > https://github.com/belgattitude/php-java-bridge > > You can have a look to the changelog to have more info or clone the > preserved 6.2.1 original branch. Check the README.md for build recipes. > > Note that if you intend to work with PHP7, I've rewrote the client part > `Java.inc`, see the > > https://github.com/belgattitude/soluble-japha > and http://docs.soluble.io/soluble-japha/manual/ > > As a teaser I'm also preparing a starter project with gradle, spring boot > and embedded tomcat: https://github.com/belgattitude/pjb-starter-gradle/ > Still at very early stages but don't hesitate to open issues or contribute. > > All the best, > > Seb > > On Mon, Jan 16, 2017 at 5:32 PM, < > php...@li...> wrote: > > > Hi all, > > > > would love to compile JavaBridge.jar with Java 8 but could not find the > > sources anywhere. Can you help? > > > > Best, > > Chris > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-01-16 19:21:47
|
Hi Chris, The original sources are available through CVS https://sourceforge.net/p/php-java-bridge/code/ As a better alternative I made an unofficial fork : https://github.com/belgattitude/php-java-bridge You can have a look to the changelog to have more info or clone the preserved 6.2.1 original branch. Check the README.md for build recipes. Note that if you intend to work with PHP7, I've rewrote the client part `Java.inc`, see the https://github.com/belgattitude/soluble-japha and http://docs.soluble.io/soluble-japha/manual/ As a teaser I'm also preparing a starter project with gradle, spring boot and embedded tomcat: https://github.com/belgattitude/pjb-starter-gradle/ Still at very early stages but don't hesitate to open issues or contribute. All the best, Seb On Mon, Jan 16, 2017 at 5:32 PM, < php...@li...> wrote: > Hi all, > > would love to compile JavaBridge.jar with Java 8 but could not find the > sources anywhere. Can you help? > > Best, > Chris > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2017-01-16 16:33:01
|
Hi all, would love to compile JavaBridge.jar with Java 8 but could not find the sources anywhere. Can you help? Best, Chris |
From: <php...@li...> - 2016-09-05 17:01:40
|
Hey Seb, Thank you very much! I think soluble-japha is exactly what i was searching for. Kind regards, David Am 05.09.2016 um 13:38 schrieb php...@li...: > Hey David, > > I suggest you to have a look to the > https://github.com/belgattitude/soluble-japha project which offer a > refactored client and support PHP7, HHVM, composer, psr-2, psr-4, fixes > most of the naughty notices, warnings... offer some future possibilities > (you can write different client implementations, see Adapter and Driver > interfaces) and a growing test suite. > > See the differences here : > https://github.com/belgattitude/soluble-japha#original-phpjavabridge-javainc-differences > > but note there's a compatibility layer if your code is relying on previous > Java.inc implementation. See the doc. > > I don't know about maintainers, but as I'm relying a lot on php-java-bridge > I'll be happy to be one of them at least for the client part. > > All the best, > > Seb > > Disclaimer, I'm the author of soluble-japha, not making advertising but > could be nice if people contribute. > > > > > > > > > > > > On Sun, Sep 4, 2016 at 7:52 PM, <php...@li... >> wrote: >> Hello, >> >> I don't know if it is the right place to ask this question, but anyway: >> I consider to use the JavaBridge for a project that uses PHP 7. The >> issue i'm facing: >> Java.inc uses methods deprecated in PHP7 (function names that are equal >> to class names). >> I'm just a little bit worried, if this project is maintained, if this >> deprecated feature is completely removed from PHP in a later release. >> Because i'm planning to update my project to be up to date with the >> newest PHP version in the feature. >> >> So to be brief: Will there be updates if the deprecated feature is >> removed in a future PHP release? >> >> Kind regards >> David >> >> ------------------------------------------------------------ >> ------------------ >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2016-09-05 11:38:13
|
Hey David, I suggest you to have a look to the https://github.com/belgattitude/soluble-japha project which offer a refactored client and support PHP7, HHVM, composer, psr-2, psr-4, fixes most of the naughty notices, warnings... offer some future possibilities (you can write different client implementations, see Adapter and Driver interfaces) and a growing test suite. See the differences here : https://github.com/belgattitude/soluble-japha#original-phpjavabridge-javainc-differences but note there's a compatibility layer if your code is relying on previous Java.inc implementation. See the doc. I don't know about maintainers, but as I'm relying a lot on php-java-bridge I'll be happy to be one of them at least for the client part. All the best, Seb Disclaimer, I'm the author of soluble-japha, not making advertising but could be nice if people contribute. On Sun, Sep 4, 2016 at 7:52 PM, <php...@li... > wrote: > Hello, > > I don't know if it is the right place to ask this question, but anyway: > I consider to use the JavaBridge for a project that uses PHP 7. The > issue i'm facing: > Java.inc uses methods deprecated in PHP7 (function names that are equal > to class names). > I'm just a little bit worried, if this project is maintained, if this > deprecated feature is completely removed from PHP in a later release. > Because i'm planning to update my project to be up to date with the > newest PHP version in the feature. > > So to be brief: Will there be updates if the deprecated feature is > removed in a future PHP release? > > Kind regards > David > > ------------------------------------------------------------ > ------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2016-09-04 17:53:09
|
Hello, I don't know if it is the right place to ask this question, but anyway: I consider to use the JavaBridge for a project that uses PHP 7. The issue i'm facing: Java.inc uses methods deprecated in PHP7 (function names that are equal to class names). I'm just a little bit worried, if this project is maintained, if this deprecated feature is completely removed from PHP in a later release. Because i'm planning to update my project to be up to date with the newest PHP version in the feature. So to be brief: Will there be updates if the deprecated feature is removed in a future PHP release? Kind regards David |
From: <php...@li...> - 2016-08-24 14:36:49
|
Ok. Im on holliday for a bit, will look when I am back in civilisation. On 24 August 2016 4:19:40 PM SAST, php...@li... wrote: >Hi Dirk, > >Yes can be really interesting... But I could not see attachement on >the sourceforge > >mailing list, I suppose I have to setup it somewhere... > >As I'm not really fond of sourceforge, if you agree, could you create >an issue on github > >https://github.com/belgattitude/soluble-japha/issues > >and attach the files. From there we can start a discussion and see if >we can find a way to make it work. > >Also useful, when I started the client refactoring, I've decided to >use an Adapter pattern in order > >to allow different implementations. So it may work by creating a new >driver. > >See the >https://github.com/belgattitude/soluble-japha/blob/master/src/Soluble/Japha/Bridge/Driver/AbstractDriver.php > >for reference. > >Let's keep in touch (but sourceforge mailing list maybe not the best >idea, what you think ?) > >Thanks, > >Seb > >> Hello Sebastien, >> >> I too have spent many years using the Java bridge (in production) to >> facilitate calling Java from PHP. I have also gone a little further, >and >> have created a simplified client interface to the bridge server that >is >> available as both a PHP include, and a GNU C library. This allows me >to >> access Java via the bridge from C code. >> >> I at one moment tried to contact the original JavaBridge maintainers >to >> see if they were interested in including this with their distribution >- >> but with no response. >> >> I guess this is a kind of different road to what you have travelled - >my >> efforts were mostly to strip out all of the object inheritance / >> reflection and etc. and put up a simple list of functions that can be >> called from a non object language like C (and obviously from PHP as >well). > >> I attach the man pages for my javaFunction / javaBridge call library >for >> your inspection. > >> Are you interested in source for this to post / merge along with your >> project? > >> Regards, >> Dirk >------------------------------------------------------------------------------ >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- Sent from my Android device with K-9 Mail. Please excuse my brevity. |
From: <php...@li...> - 2016-08-24 14:19:47
|
Hi Dirk, Yes can be really interesting... But I could not see attachement on the sourceforge mailing list, I suppose I have to setup it somewhere... As I'm not really fond of sourceforge, if you agree, could you create an issue on github https://github.com/belgattitude/soluble-japha/issues and attach the files. From there we can start a discussion and see if we can find a way to make it work. Also useful, when I started the client refactoring, I've decided to use an Adapter pattern in order to allow different implementations. So it may work by creating a new driver. See the https://github.com/belgattitude/soluble-japha/blob/master/src/Soluble/Japha/Bridge/Driver/AbstractDriver.php for reference. Let's keep in touch (but sourceforge mailing list maybe not the best idea, what you think ?) Thanks, Seb > Hello Sebastien, > > I too have spent many years using the Java bridge (in production) to > facilitate calling Java from PHP. I have also gone a little further, and > have created a simplified client interface to the bridge server that is > available as both a PHP include, and a GNU C library. This allows me to > access Java via the bridge from C code. > > I at one moment tried to contact the original JavaBridge maintainers to > see if they were interested in including this with their distribution - > but with no response. > > I guess this is a kind of different road to what you have travelled - my > efforts were mostly to strip out all of the object inheritance / > reflection and etc. and put up a simple list of functions that can be > called from a non object language like C (and obviously from PHP as well). > I attach the man pages for my javaFunction / javaBridge call library for > your inspection. > Are you interested in source for this to post / merge along with your > project? > Regards, > Dirk |