Bug #12142 Updated: mail problem with apache aliases on win2000 and Linux (tested on both)

From: Date: Sun, 02 Jun 2002 17:45:40 +0000
Subject: Bug #12142 Updated: mail problem with apache aliases on win2000 and Linux (tested on both)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9179@lists.php.net to get a copy of this message
ID: 12142 Updated by: mfischer@php.net Reported By: php@presedo.com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: linux and windows PHP Version: 4.0.6 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Is this still valid? Previous Comments: ------------------------------------------------------------------------ [2001-07-13 10:37:10] php@presedo.com Hello, Here is the problem Make a file called pipo.php. Type this lines in it : <? if ($toto = mail("php@presedo.com", "That's a subject", "That's the body")) {echo "OK";}else{echo "Not OK";} ?> Then, I define some aliases on Apache config, so that all the request that are done on a directory are redirected on a script .. Like that <VirtualHost 127.0.0.1> ServerAdmin a_mail@xxx.com ServerName xxx.xxx.com DocumentRoot "d:/networks/site/" Alias /static/ d:/networks/site/pipo.php/ </VirtualHost> Now, if you call this url (http://xxx.xxx.com/static/) the request will be send to the pipo.php file...If you do that, you can see "OK" on the browser... And if you call directly the script (http://xxx.xxx.com/pipo.php), you do have the same message (OK)... BUT When you receive the mail, with the first methode (alias) you receive 9 times the same mail !!!! And with the second method, the mail is recieved only one time... Do you think this is a bug, or maybe a misconfiguration . Thanks Bob Geneva, CH ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12142&edit=1

« previous php.bugs (#9179) next »