From:             admin at host-net dot org
Operating system: Windows 2000 Server
PHP version:      4.3.7
PHP Bug Type:     Mail related
Bug description:  function executes continuosly if placed in an if statement

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 bug report at http://bugs.php.net/?id=29003&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29003&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29003&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29003&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29003&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29003&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29003&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29003&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29003&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29003&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29003&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29003&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29003&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29003&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29003&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29003&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29003&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29003&r=float

Reply via email to