From: [EMAIL PROTECTED] Operating system: Linux (Mandrake 8.2) PHP version: 4.2.3 PHP Bug Type: Java related Bug description: The document contains no data....
**** here is my problem **** When I try to create a new java object, or when I call a java related php function (like 'java_last_exception_get()') I get the message 'Document contains no data' in my browser. **** here is my test file **** <html> <body> yes <?php echo "yes again"; /** * problem was the same with this single line : * java_last_exception_get() ; */ // 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')); ?> </body> </html> **** here is my config options **** ./configure \ --prefix=/usr/local/php4 \ --with-apxs2=/usr/local/apache-2.0.43/bin/apxs \ --with-regex=system \ --enable-inline-optimization \ --enable-debug=yes \ --enable-ftp \ --with-mysql \ --with-java=/usr/java/j2sdk1.4.1 \ --with-sybase=/usr/local/freetds \ --enable-sysvshm \ --enable-sysvsem **** here is my php.ini [java] section **** [java] ; java.home = /usr/java/j2sdk1.4.1 java.class.path=/usr/local/php4/lib/php/php_java.jar:/home/fred/java/travail/class ; java.library=/usr/java/j2sdk1.4.1/jre/lib/i386/server/libjvm.so extension_dir=/usr/local/php4/lib/php/extensions/debug-zts-20020429 extension=java.so **** here is my 'error.log' file **** [Tue Oct 29 14:21:12 2002] [notice] caught SIGTERM, shutting down [Tue Oct 29 14:30:48 2002] [notice] Apache/2.0.43 (Unix) PHP/4.2.3 configured -- resuming normal operations [Tue Oct 29 14:31:04 2002] [notice] child pid 29488 exit signal Segmentation fault (11) [Tue Oct 29 14:31:04 2002] [notice] child pid 29487 exit signal Segmentation fault (11) [Tue Oct 29 14:31:04 2002] [notice] child pid 29486 exit signal Segmentation fault (11) [Tue Oct 29 14:31:04 2002] [notice] child pid 29485 exit signal Segmentation fault (11) [Tue Oct 29 14:31:04 2002] [notice] child pid 29484 exit signal Segmentation fault (11) [Tue Oct 29 14:31:04 2002] [notice] child pid 29483 exit signal Segmentation fault (11) [Tue Oct 29 14:31:05 2002] [notice] child pid 29489 exit signal Segmentation fault (11) [Tue Oct 29 14:31:06 2002] [notice] child pid 29492 exit signal Segmentation fault (11) [Tue Oct 29 14:31:06 2002] [notice] child pid 29491 exit signal Segmentation fault (11) [Tue Oct 29 14:31:06 2002] [notice] child pid 29490 exit signal Segmentation fault (11) please help ! Thank you very much -- Edit bug report at http://bugs.php.net/?id=20148&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20148&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20148&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20148&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20148&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20148&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20148&r=support Expected behavior: http://bugs.php.net/fix.php?id=20148&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20148&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20148&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20148&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20148&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20148&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20148&r=isapi