From:             [EMAIL PROTECTED]
Operating system: Linux Debian/GNU testing
PHP version:      4.2.0
PHP Bug Type:     Mail related
Bug description:  mail() and Java combination causes webserver freeze

Hi,
i've encountered a strange bug that causes webserver (Apache  1.3.26-1 in
particular) to halt. I'm using PHP/Java combination I've built myself on
Debian GNU/Linux (testing, kernel version is 2.4.20-pre7).

The killing code is here:

<?php
  mail("[EMAIL PROTECTED]", "111", "111");
  $system = new Java('java.lang.System');
  mail("[EMAIL PROTECTED]", "222", "222");
?>

The first mail is sent successfully, but not the second one.

The most amazing thing is, that eliminating a mail() or Java() call
doesn't produce any problems. I mean, they work well separately. But when
these calls are together (in my case - even on different PHP classes), it
results a webserver lockup.

This has been tested on various PHP compilations starting from PHP 4.2.0
and up to the newest STABLE snapshot build.

The funniest thing is that this bug is ABSENT on my old PHP/Java build
(4.1.2-1). Java version is the same on both cases:

mindas@kiras:~$ java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

If you need any more details on this, just drop me a message via e-mail.
-- 
Edit bug report at http://bugs.php.net/?id=20300&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20300&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20300&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20300&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20300&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20300&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20300&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20300&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20300&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20300&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20300&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20300&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20300&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20300&r=isapi

Reply via email to