From: [EMAIL PROTECTED] Operating system: RedHat 6.2 PHP version: 4.0.6 PHP Bug Type: Java related Bug description: Java crashing HTTP session
Whenever I execute any Java code inside of PHP (even simple things), the HTTP session crashes and nothing is logged by Apache. System Info: RedHat 6.2 Apache 1.3.19 PHP 4.0.6 Sun JDK 1.3.1 PHP compile string: '--with-apxs=/usr/local/psa/apache/bin/apxs' '--prefix=/usr/local/psa/apache' '--with-mysql=/usr/local/psa/mysql' '--with-system-regex' '--without-gd' '--without-pear' '--with-imap=/usr' '--with-kerberos=/usr/kerberos' '--with-java=/usr/local/j2sdk-1_3_1' '--without-imap-ssl' '--enable-sockets' '--with-config-file-path=/usr/local/psa/apache/conf' [Java] section of php.inijava.class.path =/usr/local/psa/apache/lib/php/php_java.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/dt.jar/usr/local/psa/apache/lib/php/php_java.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3/lib/dt.jar java.home =/usr/local/jdk1.3/jre/usr/local/jdk1.3/jre java.library =/usr/local/jdk1.3/jre/lib/i386/libjava.so/usr/local/jdk1.3/jre/lib/i386/libjava.so java.library.path =/usr/local/psa/apache/lib/php/20001222:/usr/local/jdk1.3/jre/lib/i386:/usr/local/jdk1.3/jre/lib/i386/hotspot:/usr/local/jdk1.3/jre/lib/i386/native_threads PHP code: <? // get instance of Java class java.lang.System in PHP $system = new Java('java.lang.System'); // demonstrate property access print 'Java version='.$system->getProperty('java.version').' <br>'; print 'Java vendor=' .$system->getProperty('java.vendor').' <br>'; print 'OS='.$system->getProperty('os.name').' '. $system->getProperty('os.version').' on '. $system->getProperty('os.arch').' <br>'; // java.util.Date example $formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz"); print $formatter->format(new Java('java.util.Date')); ?> Now, this runs fine from the command line: /usr/local/psa/apache/bin/php /usr/local/plesk/apache/vhosts/dominiopropio.net/httpdocs/test.php X-Powered-By: PHP/4.0.6 Content-type: text/html Java version=1.3.1_01 <br>Java vendor=Sun Microsystems Inc. <br>OS=Linux 2.2.16-3 on i386 <br>Thursday, November 08, 2001 at 11:38:51 PM Eastern Standard Time But when run through the browser it sits, and then stops loading with no error either in the browser or apache logs. Via telnet, the following happens: Escape character is '^]'. GET /test.php Connection closed by foreign host. The HTTP connection is dropped instantly when the page is requested. Normal PHP runs fine. If you need any other info please let me know. -- Edit bug report at: http://bugs.php.net/?id=13996&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]