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

From: Date: Fri, 13 Jul 2001 14:37:11 +0000
Subject: Bug #12142: mail problem with apache aliases on win2000 and Linux (tested on both)
Groups: php.dev 
Request: Send a blank email to php-dev+get-59966@lists.php.net to get a copy of this message
From: php@presedo.com Operating system: linux and windows PHP version: 4.0.6 PHP Bug Type: Mail related Bug description: mail problem with apache aliases on win2000 and Linux (tested on both) 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 bug report at: http://bugs.php.net/?id=12142&edit=1

« previous php.dev (#59966) next »