ID:               29003
 Updated by:       [EMAIL PROTECTED]
 Reported By:      admin at host-net dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         Mail related
 Operating System: Windows 2000 Server
 PHP Version:      4.3.7
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




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

[2004-07-11 22:24:28] admin at host-net dot org

The only changes I have made to the php.ini are as follows:

register_globals = on
extension_dir = "C:/winnt/system32"
upload_tmp_dir = C:\PHP\uploadtemp 
SMTP = localhost
smtp_port = 25
sendmail_from = admin[at]host-net.org

The code works perfectly if session_start() is not included.

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

[2004-07-11 20:20:32] [EMAIL PROTECTED]

I can not reproduce this. Have you made any changes to your php.ini
compared to php.ini-dist from the distribution package? 


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

[2004-07-03 22:04:50] admin at host-net dot org

I forgot to add that the session_start() function has to be at the top
of the code.  

session_start();
$testnum = 5;
if($testnum == 5) {
$memail = '[EMAIL PROTECTED]';
mail('[EMAIL PROTECTED]',
         'The subject is: test',
         'Hello, this is a test',
         "From: $memail\r\nReply-to: $memail\r\n");
}

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

[2004-07-03 21:41:28] admin at host-net dot org

Description:
------------
When I place the mail function within an if statement, it runs until
the maximum execution time is exceeded.  When I take the if statement
out, it runs perfectly.

Reproduce code:
---------------
$testnum = 5;
if($testnum == 5) {
$memail = '[EMAIL PROTECTED]';
mail('[EMAIL PROTECTED]',
         'The subject is: test',
         'Hello, this is a test',
         "From: $memail\r\nReply-to: $memail\r\n");
}

Expected result:
----------------
The code should run through the if statement and send the E-mail if the
statement is true.

Actual result:
--------------
Fatal error: Maximum execution time of 30 seconds exceeded in
c:\server\webserver\host-net\secure\login\success\makechanges\email.php


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


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

Reply via email to