#29003 [Opn->Fbk]: function executes continuosly if placed in an if statement
ID: 29003
Updated by: sniper@php.net
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-20 08:18:52] admin at host-net dot org
No luck. I tried the snapshot and I got the same error. I noticed
that version 5 was out so I upgraded to that and even then it didn't
work.
------------------------------------------------------------------------
[2004-07-14 14:09:34] sniper@php.net
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
------------------------------------------------------------------------
[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] sniper@php.net
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 = 'mymail@test.com';
mail('tester@test.com',
'The subject is: test',
'Hello, this is a test',
"From: $memail\r\nReply-to: $memail\r\n");
}
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29003
--
Edit this bug report at http://bugs.php.net/?id=29003&edit=1
Thread (8 messages)