From:             [EMAIL PROTECTED]
Operating system: Linux 2.4 glibc 2.2.3
PHP version:      4.2.0
PHP Bug Type:     Apache2 related
Bug description:  Java support in PHP with Apache2 multithreaded server doesnīt work

I want Java support in PHP pages, and I had it with PHP 4.1, Apache 1.3 and
J2SDK 1.3. 

When I tried to build PHP 4.2.0RC4 with J2SDK 1.4.0 and Apache 2.0.35 the
first problems were some seg faults in PHP. I found out (using PHP as CGI
to get error messages) that I "MUST" compile PHP with
--enable-experimental-zts or otherwise it misses php_core_globals.

After some undocumented php.ini configurations(available throght
PHPBUILDER), I could finally get all three pieces working together, but
only once. If I call a page more than once, PHP reports that it canīt
create the Virtual Machine. I searched throght php.net and somebody posted
a response that PHP creates one VM per thread. So, if my Apache2 is
multithreaded, PHP is creating many VM per processes, i thought. 

Thatīs it. When I compiled Apache2 with "prefork" (not multithreaded), my
Java-enabled PHP pages worked just fine.

Iīm reporting this bug, since PHP must work with Apache2 "worker"
(multithreaded).

-- 
Edit bug report at http://bugs.php.net/?id=16690&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16690&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16690&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16690&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16690&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16690&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16690&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16690&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16690&r=submittedtwice

Reply via email to