php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12142 mail problem with apache aliases on win2000 and Linux (tested on both)
Submitted: 2001-07-13 10:37 UTC Modified: 2002-07-05 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: php at presedo dot com Assigned:
Status: No Feedback Package: Mail related
PHP Version: 4.0.6 OS: linux and windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at presedo dot com
New email:
PHP Version: OS:

 

 [2001-07-13 10:37 UTC] php at presedo dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-02 13:45 UTC] mfischer@php.net
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?
 [2002-07-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 14:01:29 2019 UTC