ID:               15998
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         Mail related
 Operating System: Linux/Unix Redhat
 PHP Version:      4.1.2
 New Comment:

The servers are responding fine.

Sendmail was working fine from the command line, before AND after the
PHP upgrade, but the php mail() command was taking a VERY long time
until I added all the IP details to /etc/hosts.  Now it works fine.


Previous Comments:
------------------------------------------------------------------------

[2002-03-11 11:00:05] [EMAIL PROTECTED]

There were no code changes to the mail() function code between 4.1.0
and 4.1.2.  And even if there was, all mail() does is open a pipe to
your sendmail or equivalent mail delivery program.  PHP does not try to
do any domain name resolution on the addresses so this DNS delay you
are experiencing can not possibly be PHP related as the DNS resolution
is done by the external mail delivery program.  You probably changed
something else on your system.  Check your /etc/resolv.conf and make
sure the DNS servers listed there are responding quickly.

------------------------------------------------------------------------

[2002-03-11 10:36:47] [EMAIL PROTECTED]

There appears to be a difference between the way mail() works between
4.1.0 and 4.1.2.  This can cause scripts which worked perfectly in PHP
4.1.0 to take as much as a minute to excecute in PHP 4.1.2.

I upgraded using a pkg file from pkgmaster.com for a Cobalt RAQ4
server, and I have spoken to another PHP user using Redhat 7 who has
experienced the same issue.

Basically PHP mail() functions were taking as long as a minute to
excecute, when prior to the upgrade they took seconds.

We found that while we had no problems with PHP 4.1.0, we had to add
all our IP's into the /etc/hosts file to cure the problem experienced
with 4.1.2.

Config is:

System Linux rev66.cobalt 2.2.16C28_III #1 Mon Jul 30 22:07:58 PDT 2001
i586 unknown

Build Date Feb 27 2002

Configure Command  './configure' '--prefix=/usr'
'--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr'
'--enable-safe-mode' '--with-config-file-path=/etc/httpd'
'--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes'
'--with-regex=system' '--with-ttf' '--with-db' '--with-gdbm'
'--with-mbstring' '--with-mbstr-enc-trans' '--enable-track-vars'
'--enable-wddx=shared' '--enable-mm=shared' '--enable-xml'
'--disable-debug' '--with-libdir=/usr/lib' '--with-db3'
'--with-interbase=shared' '--with-pgsql=shared' '-- 

Although we have solved this issue by adding the IP's to the /etc/hosts
file, it may be worth documenting this somewhere for others reference,
it took a great deal of hair-pulling to get it solved!

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15998&edit=1

Reply via email to