#20148 [Opn->Fbk]: The document contains no data....
| From: | derick@php.net | Date: | Tue, 29 Oct 2002 14:34:05 +0000 |
| Subject: | #20148 [Opn->Fbk]: The document contains no data.... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23638@lists.php.net to get a copy of this message | ||
ID: 20148
Updated by: derick@php.net
Reported By: frederic.linot@free.fr
-Status: Open
+Status: Feedback
Bug Type: Java related
Operating System: Linux (Mandrake 8.2)
PHP Version: 4.2.3
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-10-29 08:06:46] frederic.linot@free.fr
**** 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 this bug report at http://bugs.php.net/?id=20148&edit=1